Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
2  src-qt4/pc-softwaremanager/pbiBackend.h
@@ -98,7 +98,7 @@ public slots:
98 98 //variables - processes
99 99 ProcessManager *PMAN;
100 100 QString cDownload, cInstall, cRemove, cUpdate, cDownloadFile, cOther; //currently running command/pbi
101   - bool sDownload, sInstall, sRemove, sUpdate; //flag that these processes were Stopped
  101 + bool sDownload, sInstall, sRemove, sUpdate,; //flag that these processes were Stopped
102 102 QStringList PENDINGDL, PENDINGINSTALL, PENDINGREMOVAL, PENDINGUPDATE, PENDINGOTHER;
103 103 QString lDownload, lInstall, lRemove, lUpdate; //latest string output from process
104 104 //variables - other
8 src-qt4/pc-softwaremanager/processManager.cpp
@@ -232,7 +232,7 @@ void ProcessManager::slotRemProcMessage(){
232 232 }
233 233
234 234 void ProcessManager::slotRemProcFinished(){
235   - if(remProc->exitStatus() != QProcess::NormalExit){
  235 + if(remProc->exitStatus() != QProcess::NormalExit || remProc->exitCode() != 0){
236 236 qDebug() << "Removal Process Error Log:\n"<<remLog.join("\n");
237 237 emit ProcessError(REMOVE, remLog);
238 238 }else{
@@ -260,7 +260,7 @@ void ProcessManager::slotDlProcMessage(){
260 260 }
261 261
262 262 void ProcessManager::slotDlProcFinished(){
263   - if(dlProc->exitStatus() != QProcess::NormalExit){
  263 + if(dlProc->exitStatus() != QProcess::NormalExit || dlProc->exitCode() != 0){
264 264 qDebug() << "Download Process Error Log:\n"<<dlLog.join("\n");
265 265 emit ProcessError(DOWNLOAD, dlLog);
266 266 }else{
@@ -281,7 +281,7 @@ void ProcessManager::slotInProcMessage(){
281 281 }
282 282
283 283 void ProcessManager::slotInProcFinished(){
284   - if(inProc->exitStatus() != QProcess::NormalExit){
  284 + if(inProc->exitStatus() != QProcess::NormalExit || inProc->exitCode() != 0){
285 285 qDebug() << "Install Process Error Log:\n"<<inLog.join("\n");
286 286 emit ProcessError(INSTALL, inLog);
287 287 }else{
@@ -297,7 +297,7 @@ void ProcessManager::slotOtProcMessage(){
297 297 }
298 298
299 299 void ProcessManager::slotOtProcFinished(){
300   - if(otProc->exitStatus() != QProcess::NormalExit){
  300 + if(otProc->exitStatus() != QProcess::NormalExit || otProc->exitCode() != 0){
301 301 QString msg = otProc->readAllStandardError();
302 302 if(msg.isEmpty()){ msg = otProc->readAllStandardOutput(); }
303 303 if(msg.isEmpty()){ msg = tr("Unknown Error"); }

No commit comments for this range

Something went wrong with that request. Please try again.