Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Give the user a way to bypass the failsafe and restore their session

  • Loading branch information...
commit 63b4833b39a66a997be99369678a353a97c09d6e 1 parent ac0504b
Benjamin C Meyer authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  src/browserapplication.cpp
7  src/browserapplication.cpp
@@ -465,9 +465,10 @@ bool BrowserApplication::restoreLastSession()
465 465
         QSettings settings;
466 466
         settings.beginGroup(QLatin1String("MainWindow"));
467 467
         if (settings.value(QLatin1String("restoring"), false).toBool()) {
468  
-            QMessageBox::information(0, tr("Restore failed"),
469  
-                tr("The saved session will not be restored because Arora crashed while trying to restore this session."));
470  
-            return false;
  468
+            QMessageBox::StandardButton result = QMessageBox::question(0, tr("Restore failed"),
  469
+                tr("Arora crashed while trying to restore this session.  Should I try again?"), QMessageBox::Yes | QMessageBox::No);
  470
+            if (result == QMessageBox::No)
  471
+                return false;
471 472
         }
472 473
         // saveSession will be called by an AutoSaver timer from the set tabs
473 474
         // and in saveSession we will reset this flag back to false

0 notes on commit 63b4833

Please sign in to comment.
Something went wrong with that request. Please try again.