Skip to content

Commit

Permalink
fix no MPT device found message box
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed May 31, 2023
1 parent ee5cc36 commit c6e9636
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,8 @@ bool MainWindow::reconnectToDevice()
{
DevicesDialog dialog(_resetDevice, this);
int r = dialog.exec();
if (r == QDialog::Rejected)
return false;
_device = dialog.getDevice();
if (r == QDialog::Accepted)
_device = dialog.getDevice();
}

if (!_device)
Expand Down

0 comments on commit c6e9636

Please sign in to comment.