zz_setContentsDialog.cpp

changeset 125
7ee7aa5e28be
parent 117
7eb7a43a511b
child 135
c243df39913e
equal deleted inserted replaced
124:7962744759ad 125:7ee7aa5e28be
95 // Reinterpret it from the text of the input field 95 // Reinterpret it from the text of the input field
96 obj = parseLine (dlg.qContents->text ().toStdString ().c_str ()); 96 obj = parseLine (dlg.qContents->text ().toStdString ().c_str ());
97 97
98 // Mark down the history now before we perform the replacement (which 98 // Mark down the history now before we perform the replacement (which
99 // destroys the old object) 99 // destroys the old object)
100 History::addEntry (new EditHistory ({oldobj->getIndex (g_CurrentFile)}, 100 History::addEntry (new EditHistory ({(ulong) oldobj->getIndex (g_CurrentFile)},
101 {oldobj->clone ()}, {obj->clone ()})); 101 {oldobj->clone ()}, {obj->clone ()}));
102 102
103 oldobj->replace (obj); 103 oldobj->replace (obj);
104 104
105 // Rebuild stuff after this 105 // Rebuild stuff after this

mercurial