Fix compiler warnings
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 3 Nov 2010 23:06:18 +0000 (00:06 +0100)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Wed, 3 Nov 2010 23:06:18 +0000 (00:06 +0100)
src/mainwindow.cpp

index 3034c12..64733c9 100644 (file)
@@ -41,9 +41,7 @@ MainWindow::MainWindow(QWidget *parent) :
     //create a QGraphicsScene for the little chip icon
     scene( this ),
     //the settings widget
-    settings(this),
-    //show errors about the sudo setup only once
-    showSudoError( true )
+    settings(this)
 {
     //this is a stacked window on Maemo 5
     #if defined(Q_WS_MAEMO_5)
@@ -73,6 +71,9 @@ MainWindow::MainWindow(QWidget *parent) :
     //Settings widget
     settings.hide();
 
+    //show errors about the sudo setup only once
+    showSudoError = true;
+
     //connect signals and slots
     connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp()));
     connect( ui->actionAbout, SIGNAL(triggered()), this, SLOT(about()) );