Skip to content

Commit

Permalink
Merge pull request supercollider#5208 from elgiano/topic/restoreDocYes
Browse files Browse the repository at this point in the history
scide: restoreDocuments dialog focuses Yes button
  • Loading branch information
mossheim authored Oct 21, 2020
2 parents 88f52c1 + e602fd0 commit 0e9ebd1
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 0e9ebd1

Please sign in to comment.