diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-06 00:20:52 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-06 00:20:52 +0100 |
commit | 215274abfcbe43e5d64ae8104481dc46cd618952 (patch) | |
tree | aa96f29127198e282724f81326c62f597e9f5b25 /src/application.cpp | |
parent | Ok, things seem working well now. (diff) | |
download | rekonq-215274abfcbe43e5d64ae8104481dc46cd618952.tar.xz |
Just another crash recovery fix.
Now rekonq tries just 1 time to recover from crash. In Italy
we say "Perseverare e' diabolico"...
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp index 31f0ab2e..efa7bc22 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -81,7 +81,7 @@ Application::~Application() { // ok, we are closing well. // Don't recover on next load.. - ReKonfig::setRecoverOnCrash(false); + ReKonfig::setRecoverOnCrash(0); saveConfiguration(); foreach( QWeakPointer<MainWindow> window, m_mainWindows) @@ -147,7 +147,7 @@ int Application::newInstance() // is your app session restored? restore session... // this mechanism also falls back to load usual plain rekonq // if something goes wrong... - if (ReKonfig::recoverOnCrash() && sessionManager()->restoreSession()) + if (ReKonfig::recoverOnCrash() == 1 && sessionManager()->restoreSession()) { kDebug() << "session restored"; return 1; @@ -205,7 +205,8 @@ void Application::postLaunch() Application::instance(), SLOT(loadUrl(const KUrl&, const Rekonq::OpenType&))); // crash recovering - ReKonfig::setRecoverOnCrash(true); + int n = ReKonfig::recoverOnCrash(); + ReKonfig::setRecoverOnCrash(++n); saveConfiguration(); } |