diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-08 12:42:45 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-18 15:42:31 +0100 |
commit | 830b2f24ec1375b5fee5891f10444a67da562484 (patch) | |
tree | 7719aab2693f658f772141ddcac77ab292730c54 /src/application.cpp | |
parent | Get sure against "strange" behaviours in opensearchengine (diff) | |
download | rekonq-830b2f24ec1375b5fee5891f10444a67da562484.tar.xz |
Remove postLaunch calls
This will help a lot in having a clean/easy startup, also a bit less
fast.
Let's see if this helps stability...
PS:
To the bug reporter. I pushed a "NoPostLaunch" in rekonq git repo.
Can you please try compiling and testing if this fixes your troubles
on startup??
Many thanks for any help.
Andrea.
CCBUG:284356
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/src/application.cpp b/src/application.cpp index 41921aa5..35a4c0d8 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -265,8 +265,24 @@ int Application::newInstance() if (isFirstLoad) { - // give me some time to do the other things.. - QTimer::singleShot(100, this, SLOT(postLaunch())); + // updating rekonq configuration + updateConfiguration(); + + setWindowIcon(KIcon("rekonq")); + + historyManager(); + + // bookmarks loading + connect(bookmarkProvider(), SIGNAL(openUrl(const KUrl&, const Rekonq::OpenType&)), + instance(), SLOT(loadUrl(const KUrl&, const Rekonq::OpenType&))); + + // crash recovering + if (ReKonfig::recoverOnCrash()) + { + mainWindow()->currentTab()->showMessageBar(); + } + ReKonfig::setRecoverOnCrash(ReKonfig::recoverOnCrash() + 1); + saveConfiguration(); } return exitValue; @@ -279,29 +295,6 @@ Application *Application::instance() } -void Application::postLaunch() -{ - // updating rekonq configuration - updateConfiguration(); - - setWindowIcon(KIcon("rekonq")); - - historyManager(); - - // bookmarks loading - connect(bookmarkProvider(), SIGNAL(openUrl(const KUrl&, const Rekonq::OpenType&)), - instance(), SLOT(loadUrl(const KUrl&, const Rekonq::OpenType&))); - - // crash recovering - if (ReKonfig::recoverOnCrash()) - { - mainWindow()->currentTab()->showMessageBar(); - } - ReKonfig::setRecoverOnCrash(ReKonfig::recoverOnCrash() + 1); - saveConfiguration(); -} - - void Application::saveConfiguration() const { ReKonfig::self()->writeConfig(); @@ -438,7 +431,6 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) barForTab->setQUrl(url); WebView *view = tab->view(); - if (view) { FilterUrlJob *job = new FilterUrlJob(view, url.pathOrUrl(), this); |