Fri, 02 Aug 2013 16:36:38 +0300
Fixed crash on opening a file
src/file.cpp | file | annotate | diff | comparison | revisions |
--- a/src/file.cpp Fri Aug 02 16:33:30 2013 +0300 +++ b/src/file.cpp Fri Aug 02 16:36:38 2013 +0300 @@ -521,16 +521,12 @@ LDFile::closeInitialFile(); // Rebuild the object tree view now. + LDFile::setCurrent (file); g_win->fullRefresh(); - g_win->updateTitle(); - g_win->R()->setFile (file); - g_win->R()->resetAngles(); // Add it to the recent files list. addRecentFile (path); g_loadingMainFile = false; - - LDFile::setCurrent (file); } // ============================================================================= @@ -979,6 +975,7 @@ g_win->clearSelection(); g_win->updateFileListItem (f); g_win->buildObjList(); + g_win->updateTitle(); g_win->R()->setFile (f); g_win->R()->repaint();