Permalink
Browse files

Add a verification dialog before installing an application from the b…

…rowser.
  • Loading branch information...
1 parent a96d2c0 commit 603823aba224468e203e0613dddd972929f7b9a5 Ken Moore committed Aug 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src-qt4/pc-softwaremanager/mainUI.cpp
View
4 src-qt4/pc-softwaremanager/mainUI.cpp
@@ -943,6 +943,10 @@ void MainUI::on_line_browse_searchbar_textChanged(){
void MainUI::on_tool_bapp_download_clicked(){
QString appID = ui->tool_bapp_download->whatsThis();
+ //Verify the app installation
+ if( QMessageBox::Yes != QMessageBox::question(this,tr("Verify Installation"), tr("Are you sure you want to install this application?")+"\n\n"+appID,QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes)){
+ return;
+ }
PBI->installApp(QStringList() << appID);
ui->tool_bapp_download->setEnabled(FALSE); //make sure it cannot be clicked more than once before page refresh
//Now show the Installed tab

0 comments on commit 603823a

Please sign in to comment.