Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent duplicate error messages if a download failes in the AppCafe.

  • Loading branch information...
commit d44b10827fb19684154bde194cf79a66d02d4526 1 parent 8bcbb15
@beanpole135 beanpole135 authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 src-qt4/pc-softwaremanager/pbiBackend.cpp
View
7 src-qt4/pc-softwaremanager/pbiBackend.cpp
@@ -1131,11 +1131,8 @@ void PBIBackend::slotProcessError(int ID, QStringList log){
}
}
else if(ID == ProcessManager::DOWNLOAD){
- if(!sDownload){ //not stopped manually
- if(APPHASH.contains(cDownload)){name = APPHASH[cDownload].name; }
- title = QString(tr("%1 Download Error:")).arg(name);
- message = tr("The download process experienced an error and could not be completed");
- }
+ //The ProcessFinished function has a bit more robust check for download failures
+ // - use it instead to prevent duplicate error messages
}
else if(ID == ProcessManager::OTHER){
if(PBIHASH.contains(cOther)){name = PBIHASH[cOther].name; }
Please sign in to comment.
Something went wrong with that request. Please try again.