diff options
author | kh1 <qt-info@nokia.com> | 2011-06-01 14:57:27 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-06-01 14:57:27 +0200 |
commit | aad139ba7a0af35909b97d77406e8397f86da818 (patch) | |
tree | 619cfd2f4a213b5685aa1674a5f9dc719b07f49d /examples | |
parent | 351907678da36edc59df7b3006168bd1940c6a47 (diff) |
Init known operations as early as possible.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/testapp/main.cpp | 3 | ||||
-rw-r--r-- | examples/testapp/mainwindow.cpp | 2 |
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")); |