diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-24 20:06:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-28 19:36:44 +0200 |
commit | fdb1c4f23b6b67cca3ccff445490076d940a3c6a (patch) | |
tree | dbd1ed771868c3205f2524788b925fa573e04f82 /src/application.cpp | |
parent | Follow KDE SC 4.5 cmake minimum requirements (diff) | |
download | rekonq-fdb1c4f23b6b67cca3ccff445490076d940a3c6a.tar.xz |
Follow settings (choose tabs or windows) when opening new tabs
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp index a386eba4..4a9ba8c5 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -364,7 +364,13 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type) switch (type) { case Rekonq::NewTab: - tab = w->mainView()->newWebTab(!ReKonfig::openTabsBack(), ReKonfig::openTabsNearCurrent()); + if( ReKonfig::openTabNoWindow() ) + tab = w->mainView()->newWebTab(!ReKonfig::openTabsBack(), ReKonfig::openTabsNearCurrent()); + else + { + w = newMainWindow(); + tab = w->mainView()->currentWebTab(); + } break; case Rekonq::NewFocusedTab: tab = w->mainView()->newWebTab(true); |