Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 63b4833b39a66a997be99369678a353a97c09d6e 1 parent ac0504b
Benjamin C Meyer icefox authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/browserapplication.cpp
7 src/browserapplication.cpp
View
@@ -465,9 +465,10 @@ bool BrowserApplication::restoreLastSession()
QSettings settings;
settings.beginGroup(QLatin1String("MainWindow"));
if (settings.value(QLatin1String("restoring"), false).toBool()) {
- QMessageBox::information(0, tr("Restore failed"),
- tr("The saved session will not be restored because Arora crashed while trying to restore this session."));
- return false;
+ QMessageBox::StandardButton result = QMessageBox::question(0, tr("Restore failed"),
+ tr("Arora crashed while trying to restore this session. Should I try again?"), QMessageBox::Yes | QMessageBox::No);
+ if (result == QMessageBox::No)
+ return false;
}
// saveSession will be called by an AutoSaver timer from the set tabs
// and in saveSession we will reset this flag back to false
Please sign in to comment.
Something went wrong with that request. Please try again.