Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:pcbsd/pcbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Nov 7, 2013
2 parents 8afc51a + d44b108 commit 1e75537
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src-qt4/pc-softwaremanager/extras.h
Expand Up @@ -109,7 +109,7 @@ class Extras{
QString out = name.toLower(); QString out = name.toLower();
out.remove(" "); out.remove(" ");
out.remove("\t"); out.remove("\t");
out.simplified(); out = out.simplified();
return out; return out;
} }


Expand Down
7 changes: 2 additions & 5 deletions src-qt4/pc-softwaremanager/pbiBackend.cpp
Expand Up @@ -1131,11 +1131,8 @@ void PBIBackend::slotProcessError(int ID, QStringList log){
} }
} }
else if(ID == ProcessManager::DOWNLOAD){ else if(ID == ProcessManager::DOWNLOAD){
if(!sDownload){ //not stopped manually //The ProcessFinished function has a bit more robust check for download failures
if(APPHASH.contains(cDownload)){name = APPHASH[cDownload].name; } // - use it instead to prevent duplicate error messages
title = QString(tr("%1 Download Error:")).arg(name);
message = tr("The download process experienced an error and could not be completed");
}
} }
else if(ID == ProcessManager::OTHER){ else if(ID == ProcessManager::OTHER){
if(PBIHASH.contains(cOther)){name = PBIHASH[cOther].name; } if(PBIHASH.contains(cOther)){name = PBIHASH[cOther].name; }
Expand Down
2 changes: 1 addition & 1 deletion src-qt4/pc-softwaremanager/pbiDBAccess.cpp
Expand Up @@ -361,6 +361,6 @@ QString PBIDBAccess::runCMD(QString cmd){
output = "Process timed out (30 sec)"; output = "Process timed out (30 sec)";
} }
if(output.endsWith("\n")){ output.chop(1); } if(output.endsWith("\n")){ output.chop(1); }
output.simplified(); output = output.simplified();
return output; return output;
} }

0 comments on commit 1e75537

Please sign in to comment.