]> 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 7075b2c63544bd92760eaa4de2a5a57eb490d22a..95df533c63e923238f85f943c6fb5857932a858c 100644 (file)
@@ -22,6 +22,7 @@
 #include <QTimer>
 #include "QTreePushButton.h"
 #include <QUrl>
+#include <QSettings>
 
 // VV include
 #include "vvMainWindow.h"
@@ -325,18 +326,17 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
   //timerMemory->setInterval(5);
   connect(timerMemory, SIGNAL(timeout()), this, SLOT(UpdateMemoryUsage()));
   timerMemory->start(2000);
-  
-  
+}
+//------------------------------------------------------------------------------
+
+void vvMainWindow::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.
   }
-  
 }
-//------------------------------------------------------------------------------
-
-
 //------------------------------------------------------------------------------
 void vvMainWindow::UpdateMemoryUsage()
 {