summaryrefslogtreecommitdiffstats
path: root/tools/assistant
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2010-09-23 10:19:24 (GMT)
committerChristian Kandeler <christian.kandeler@nokia.com>2010-09-23 15:36:47 (GMT)
commite14f5aca56d652137a79fe9ae85b4d034a09e018 (patch)
tree2d6de78fa252203c754f2441f06df2a0c6a17f53 /tools/assistant
parent6583aa21cfe822ea7d094b22a22caa06289d34bd (diff)
downloadQt-e14f5aca56d652137a79fe9ae85b4d034a09e018.zip
Qt-e14f5aca56d652137a79fe9ae85b4d034a09e018.tar.gz
Qt-e14f5aca56d652137a79fe9ae85b4d034a09e018.tar.bz2
Assistant: Move comment to the right place.
Diffstat (limited to 'tools/assistant')
-rw-r--r--tools/assistant/tools/assistant/main.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/assistant/tools/assistant/main.cpp b/tools/assistant/tools/assistant/main.cpp
index bb86bfe..e3eef34 100644
--- a/tools/assistant/tools/assistant/main.cpp
+++ b/tools/assistant/tools/assistant/main.cpp
@@ -420,16 +420,18 @@ int main(int argc, char *argv[])
cachedCollection.setCurrentFilter(cmd.currentFilter());
}
- /*
- * We need to be careful here: The main window has to be deleted before
- * the help engine wrapper, which has to be deleted before the
- * QApplication.
- */
if (collectionFileGiven)
cmd.setCollectionFile(cachedCollectionFile);
+
MainWindow *w = new MainWindow(&cmd);
w->show();
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
+
+ /*
+ * We need to be careful here: The main window has to be deleted before
+ * the help engine wrapper, which has to be deleted before the
+ * QApplication.
+ */
const int retval = a.exec();
delete w;
HelpEngineWrapper::removeInstance();