diff options
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")); |