Skip to content

Commit

Permalink
set default button to Ignore, removed logging of return code from dia…
Browse files Browse the repository at this point in the history
…log's exec
  • Loading branch information
whoozle committed May 24, 2019
1 parent 74bf1b5 commit 803f53f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,15 @@ bool MainWindow::reconnectToDevice()
QMessageBox::Reset | QMessageBox::Ignore,
this
);
dialog.setDefaultButton(QMessageBox::Ignore);
dialog.setEscapeButton(QMessageBox::Ignore);
auto r = dialog.exec();

if ((r & QMessageBox::Reset) == QMessageBox::Reset)
{
qDebug("retry with reset...");
resetDevice = true;
}
qDebug() << r << QMessageBox::Ignore;
if ((r & QMessageBox::Ignore) == QMessageBox::Ignore)
++desc;
}
Expand Down

0 comments on commit 803f53f

Please sign in to comment.