changeset 388:a507e5f1b999

Emit a signal if no errors happened during installation.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 15 Apr 2014 19:03:56 +0200
parents 32309299bec9
children 3be838c3e4d8
files ui/installwrapper.cpp ui/installwrapper.h
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui/installwrapper.cpp	Tue Apr 15 19:03:06 2014 +0200
+++ b/ui/installwrapper.cpp	Tue Apr 15 19:03:56 2014 +0200
@@ -134,8 +134,8 @@
     if (retval != 0) {
         /* TODO make this nicer */
         emit error (tr("The process failed with return code. %1").arg(retval));
+        return;
     }
-    return;
 #else /* WIN32 */
     QProcess installerProcess;
     installerProcess.setProgram(cinstProcInfo.absoluteFilePath());
@@ -176,4 +176,5 @@
         return;
     }
 #endif
+    emit installationSuccessful();
 }
--- a/ui/installwrapper.h	Tue Apr 15 19:03:06 2014 +0200
+++ b/ui/installwrapper.h	Tue Apr 15 19:03:56 2014 +0200
@@ -73,6 +73,14 @@
      * @param[out] message: A localized message to show. Can be empty.
      */
     void error(const QString &message);
+
+    /**
+     * @brief The installation was successful
+     *
+     * This only means the installation was successful as far as we
+     * can tell as there is no backchannel from the installation processes.
+     */
+    void installationSuccessful();
 };
 
 #endif // UI_INSTALLWRAPPER_H

http://wald.intevation.org/projects/trustbridge/