diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-06-13 12:43:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-06-13 12:43:18 +0200 |
commit | 512795f1c5b826b500a2b04d4ac93695c3e7060b (patch) | |
tree | 2f8bef9b7de20b2875e1d89c3db3f87a3e711f2e /src/application.cpp | |
parent | Update Changelog (diff) | |
download | rekonq-512795f1c5b826b500a2b04d4ac93695c3e7060b.tar.xz |
Minor clean up in App ctor
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/application.cpp b/src/application.cpp index 9daf5fa2..32c4f658 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -186,15 +186,13 @@ int Application::newInstance() // so, we have 8 possible cases... static bool isFirstLoad = true; bool areThereArguments = (args->count() > 0); - bool isRekonqCrashed = (ReKonfig::recoverOnCrash() > 0); - // note that isRekonqCrashed is always true if it is not the first load - // !isFirstLoad -> isRekonqCrashed + bool hasToBeRecovered = (ReKonfig::recoverOnCrash() > 0); + // note that hasToBeRecovered is always true if it is not the first load + // !isFirstLoad -> hasToBeRecovered kDebug() << "is first load? " << isFirstLoad; kDebug() << "are there arguments? " << areThereArguments; - kDebug() << "is rekonq crashed? " << isRekonqCrashed; - - int exitValue = 1 * isFirstLoad + 2 * areThereArguments + 4 * isRekonqCrashed; + kDebug() << "is rekonq crashed? " << hasToBeRecovered; if (isFirstLoad && isSessionRestored()) { @@ -267,7 +265,7 @@ int Application::newInstance() { if (isFirstLoad) { - if (isRekonqCrashed) + if (hasToBeRecovered) { loadUrl(KUrl("about:closedTabs"), Rekonq::NewWindow); } @@ -312,7 +310,7 @@ int Application::newInstance() if (isFirstLoad) { - if (isRekonqCrashed) + if (hasToBeRecovered) { QTimer::singleShot(1000, mainWindow()->currentTab(), SLOT(showMessageBar())); } @@ -321,7 +319,7 @@ int Application::newInstance() sessionManager()->setSessionManagementEnabled(true); } - if (ReKonfig::checkDefaultSearchEngine() && !isRekonqCrashed && SearchEngine::defaultEngine().isNull()) + if (ReKonfig::checkDefaultSearchEngine() && !hasToBeRecovered && SearchEngine::defaultEngine().isNull()) QTimer::singleShot(2000, mainWindow()->currentTab(), SLOT(showSearchEngineBar())); // updating rekonq configuration |