summaryrefslogtreecommitdiffstats
path: root/examples/testapp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-06-01 14:57:27 +0200
committerkh1 <qt-info@nokia.com>2011-06-01 14:57:27 +0200
commitaad139ba7a0af35909b97d77406e8397f86da818 (patch)
tree619cfd2f4a213b5685aa1674a5f9dc719b07f49d /examples/testapp
parent351907678da36edc59df7b3006168bd1940c6a47 (diff)
Init known operations as early as possible.
Diffstat (limited to 'examples/testapp')
-rw-r--r--examples/testapp/main.cpp3
-rw-r--r--examples/testapp/mainwindow.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/testapp/main.cpp b/examples/testapp/main.cpp
index 827c67a5c..edd7cdaa6 100644
--- a/examples/testapp/main.cpp
+++ b/examples/testapp/main.cpp
@@ -32,6 +32,8 @@
**************************************************************************/
#include "mainwindow.h"
+#include <init.h>
+
#include <KDToolsCore/KDSelfRestarter>
#include <QtGui/QApplication>
@@ -39,6 +41,7 @@
int main(int argc, char *argv[])
{
+ QInstaller::init();
const KDSelfRestarter restarter(argc, argv);
QApplication app(argc, argv);
diff --git a/examples/testapp/mainwindow.cpp b/examples/testapp/mainwindow.cpp
index 799fbd781..7347de99c 100644
--- a/examples/testapp/mainwindow.cpp
+++ b/examples/testapp/mainwindow.cpp
@@ -38,7 +38,6 @@
#include <common/binaryformat.h>
#include <common/errors.h>
-#include <init.h>
#include <updatesettings.h>
#include <KDToolsCore/KDSelfRestarter>
@@ -57,7 +56,6 @@ MainWindow::MainWindow(const QStringList &args, QWidget *parent)
, m_dialog(new UpdateSettingsDialog(this))
, m_installer(new Installer(QInstaller::MagicUpdaterMarker))
{
- QInstaller::init();
m_installer->setUpdaterApplication(&updaterapp);
QMenu *fm = menuBar()->addMenu(QObject::tr("File"));