# HG changeset patch # User Andre Heinecke # Date 1397581436 -7200 # Node ID a507e5f1b9991152d7f95012d253c013980bc19c # Parent 32309299bec9df8e95e7b65b52a0fd8b8507df63 Emit a signal if no errors happened during installation. diff -r 32309299bec9 -r a507e5f1b999 ui/installwrapper.cpp --- 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(); } diff -r 32309299bec9 -r a507e5f1b999 ui/installwrapper.h --- 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