diff ui/installwrapper.cpp @ 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 17e1c8f37d72
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();
 }

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