Save to image crash fix (ticket:251)
authorBrandon King <kingb@caltech.edu>
Sat, 3 Mar 2007 01:04:35 +0000 (01:04 +0000)
committerBrandon King <kingb@caltech.edu>
Sat, 3 Mar 2007 01:04:35 +0000 (01:04 +0000)
qui/MussaWindow.cpp

index 39d25f9db598bf69223ac14f05eb3d15cd37d411..242781606d1daf5ca55884b81ee0e9f2f51ac223 100644 (file)
@@ -69,13 +69,15 @@ MussaWindow::MussaWindow(MussaRef analysis_, QWidget *parent) :
   manualAssistant(0)
 {
   init_resources();
+  
+  default_dir.reset(new QDir(QDir::home().absolutePath()));
+  
   setupWidgets();
   setupActions();
   setupAssistant();
   setupMainMenu();
   
   setWindowIcon(QIcon(":/icons/mussa.png"));
-  default_dir.reset(new QDir(QDir::home().absolutePath()));
 
   setCentralWidget(browser);
   // well updatePosition isn't quite right as we really just need