Changeset 62181e6


Ignore:
Timestamp:
02/24/15 10:22:13 (5 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.1.2, releng/10.2
Children:
0e25d4a
Parents:
6af504d
Message:

Fix a bug in qsudo where clicking the "cancel" button would cause the entire process to just hang and never quit. Now it will return an exit code of 1 for any cancelled process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/qsudo/mainwindow.cpp

    rcb87044 r62181e6  
    172172void MainWindow::slotButtonClicked(QAbstractButton *myBut) 
    173173{ 
    174   if ( buttonBox->buttonRole(myBut) == QDialogButtonBox::AcceptRole )  
     174  if ( buttonBox->buttonRole(myBut) == QDialogButtonBox::AcceptRole ) { 
    175175     testPass(); 
    176   close(); 
     176     close(); 
     177  }else{ 
     178    QApplication::exit(1); 
     179  } 
     180   
    177181} 
    178182 
Note: See TracChangeset for help on using the changeset viewer.