Skip to content

Commit

Permalink
Restore warning pop-up before patching (Fixes #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-poidevin committed May 2, 2017
1 parent ee69cc2 commit b11bfe0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ void MainWindow::on_patchButton_clicked()
if(searchKernelExtensionFile(&kernelFile))
{
//Display Warning Message
//TODO : Uncomment
//int answer = QMessageBox::question(this, "Warning", "This will patch the kernel configuration file.\nAre you sure you want to procede ?", QMessageBox::Yes | QMessageBox::No);

//if (answer == QMessageBox::Yes)
if(1)
int answer = QMessageBox::question(this, "Warning", "This will patch the kernel configuration file.\nAre you sure you want to procede ?", QMessageBox::Yes | QMessageBox::No);
if (answer == QMessageBox::Yes)
{
password = QInputDialog::getText(this,tr("Password"),tr("Password:"),QLineEdit::Password,"",&ok);

Expand Down

0 comments on commit b11bfe0

Please sign in to comment.