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

Commit

Permalink
Make sure the AppCafe starts applications with "startDetached" instea…
Browse files Browse the repository at this point in the history
…d of "execute". This should make sure that the new application instance is completely independent of the AppCafe process. Also make sure that warning boxes are displayed with "show" instead of "exec", that way the main GUI can also continue running in the background (great for multiple app scheduled for install but one runs into a problem).
  • Loading branch information
Ken Moore committed Mar 17, 2014
1 parent f0d1327 commit 78469f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-qt4/pc-softwaremanager/mainUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ void MainUI::slotStartApp(QAction* act){
QString desktopfile = act->whatsThis();
QString cmd = "xdg-open "+desktopfile;
//Startup the command externally
QProcess::execute(cmd);
QProcess::startDetached(cmd);
}

void MainUI::slotUpdateSelectedPBI(){
Expand Down Expand Up @@ -1232,7 +1232,7 @@ void MainUI::slotDisplayError(QString title,QString message,QStringList log){
dlg->setWindowTitle(title);
dlg->setText(message);
dlg->setDetailedText(log.join("\n"));
dlg->exec();
dlg->show();
}

void MainUI::slotDisplayStats(){
Expand Down

0 comments on commit 78469f9

Please sign in to comment.