Ignore:
Timestamp:
08/19/13 10:54:17 (13 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
0de3f5a
Parents:
a96d2c0
Message:

Add a verification dialog before installing an application from the browser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    r6156865 r603823a  
    944944void MainUI::on_tool_bapp_download_clicked(){ 
    945945  QString appID = ui->tool_bapp_download->whatsThis(); 
     946  //Verify the app installation 
     947  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)){ 
     948    return; 
     949  } 
    946950  PBI->installApp(QStringList() << appID); 
    947951  ui->tool_bapp_download->setEnabled(FALSE); //make sure it cannot be clicked more than once before page refresh 
Note: See TracChangeset for help on using the changeset viewer.