--- a/zz_setContentsDialog.cpp Sat May 04 13:52:47 2013 +0300 +++ b/zz_setContentsDialog.cpp Sat May 04 18:31:03 2013 +0300 @@ -86,7 +86,7 @@ if (!obj) return; - SetContentsDialog dlg (obj, g_ForgeWindow); + SetContentsDialog dlg (obj, g_win); if (dlg.exec () == false) return; @@ -97,11 +97,11 @@ // Mark down the history now before we perform the replacement (which // destroys the old object) - History::addEntry (new EditHistory ({(ulong) oldobj->getIndex (g_CurrentFile)}, + History::addEntry (new EditHistory ({(ulong) oldobj->getIndex (g_curfile)}, {oldobj->clone ()}, {obj->clone ()})); oldobj->replace (obj); // Rebuild stuff after this - g_ForgeWindow->refresh (); + g_win->refresh (); } \ No newline at end of file