--- a/src/file.cpp Sun May 19 13:21:06 2013 +0300 +++ b/src/file.cpp Sun May 19 13:51:38 2013 +0300 @@ -330,8 +330,11 @@ g_loadedFiles.push_back (f); g_curfile = f; - g_BBox.calculate(); + History::clear (); + + g_BBox.reset (); g_win->fullRefresh (); + g_win->updateTitle (); } // ============================================================================= @@ -789,4 +792,13 @@ strcpy (entry.sTitle, sTitle); g_PartList.push_back (entry); } +} + +// ============================================================================= +bool safeToCloseAll () { + for (OpenFile* f : g_loadedFiles) + if (!f->safeToClose ()) + return false; + + return true; } \ No newline at end of file