comparison 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
comparison
equal deleted inserted replaced
387:32309299bec9 388:a507e5f1b999
132 CloseHandle(shExecInfo.hProcess); 132 CloseHandle(shExecInfo.hProcess);
133 133
134 if (retval != 0) { 134 if (retval != 0) {
135 /* TODO make this nicer */ 135 /* TODO make this nicer */
136 emit error (tr("The process failed with return code. %1").arg(retval)); 136 emit error (tr("The process failed with return code. %1").arg(retval));
137 return;
137 } 138 }
138 return;
139 #else /* WIN32 */ 139 #else /* WIN32 */
140 QProcess installerProcess; 140 QProcess installerProcess;
141 installerProcess.setProgram(cinstProcInfo.absoluteFilePath()); 141 installerProcess.setProgram(cinstProcInfo.absoluteFilePath());
142 QStringList parameters; 142 QStringList parameters;
143 143
174 qDebug() << "Installer Process returned: " << installerProcess.exitCode(); 174 qDebug() << "Installer Process returned: " << installerProcess.exitCode();
175 qDebug() << "output: " << installerProcess.readAllStandardOutput(); 175 qDebug() << "output: " << installerProcess.readAllStandardOutput();
176 return; 176 return;
177 } 177 }
178 #endif 178 #endif
179 emit installationSuccessful();
179 } 180 }

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