src/file.cpp

changeset 422
00eedf400f72
parent 421
7d26db0be944
child 423
8516b8e14fb4
--- 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();
 		

mercurial