gui.cpp

changeset 23
69a91c1ff583
parent 22
335e430a6b4f
child 24
d2d4d0154338
--- a/gui.cpp	Sat Mar 16 17:50:13 2013 +0200
+++ b/gui.cpp	Mon Mar 18 03:38:51 2013 +0200
@@ -200,10 +200,7 @@
 	str name = QFileDialog::getOpenFileName (this, "Open File",
 		"", "LDraw files (*.dat *.ldr)").toStdString().c_str();
 	
-	if (g_LoadedFiles.size())
-		closeModel ();
-	
-	IO_OpenLDrawFile (name);
+	openModel (name);
 }
 
 void LDForgeWindow::slot_save () {

mercurial