]> Creatis software - clitk.git/blobdiff - vv/vvMainWindow.cxx
the dialog is filled with previous settings if the user was already registered
[clitk.git] / vv / vvMainWindow.cxx
index d4c2976dc801beef46843fbf3f1217af8a7c01fa..95df533c63e923238f85f943c6fb5857932a858c 100644 (file)
@@ -22,6 +22,7 @@
 #include <QTimer>
 #include "QTreePushButton.h"
 #include <QUrl>
+#include <QSettings>
 
 // VV include
 #include "vvMainWindow.h"
@@ -329,11 +330,11 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
 //------------------------------------------------------------------------------
 
 void vvMainWindow::show(){
- vvMainWindowBase::show();
 vvMainWindowBase::show();
   vvRegisterForm* registerForm = new vvRegisterForm(QUrl("http://localhost/vvregister/write.php"));
   if(registerForm->canPush()){
-      registerForm->show();
-      registerForm->acquitPushed();//too bad if there is not internet connection anymore.
+    registerForm->show();
+    registerForm->acquitPushed();//too bad if there is not internet connection anymore.
   }
 }
 //------------------------------------------------------------------------------