Skip to content

Commit

Permalink
scide: restoreDocuments dialog focuses Yes button
Browse files Browse the repository at this point in the history
  • Loading branch information
elgiano committed Oct 21, 2020
1 parent 96079e0 commit e602fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editors/sc-ide/widgets/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,8 @@ void MainWindow::restoreDocuments() {
if (docMng->needRestore()) {
QString msg = tr("Supercollider didn't quit properly last time\n"
"Do you want to restore files saved as temporary backups?");
QMessageBox::StandardButton restore =
QMessageBox::warning(mInstance, tr("Restore files?"), msg, QMessageBox::Yes | QMessageBox::No);
QMessageBox::StandardButton restore = QMessageBox::warning(
mInstance, tr("Restore files?"), msg, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
if (restore == QMessageBox::Yes)
docMng->restore();
else
Expand Down

0 comments on commit e602fd0

Please sign in to comment.