# HG changeset patch # User Santeri Piippo # Date 1375450598 -10800 # Node ID 00eedf400f722c89e2433f8ef87981be30db7cde # Parent 7d26db0be944fb0b056ee46cbdec7371eb1736ad Fixed crash on opening a file diff -r 7d26db0be944 -r 00eedf400f72 src/file.cpp --- 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();