summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 5dd2909c..a49e1d80 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -57,6 +57,7 @@
#include <KStartupInfo>
#include <ThreadWeaver/Weaver>
#include <KAction>
+#include <KWindowSystem>
// Qt Includes
#include <QVBoxLayout>
@@ -167,8 +168,11 @@ int Application::newInstance()
}
else
{
- if(ReKonfig::openTabNoWindow())
+ if(ReKonfig::openTabNoWindow()) {
loadUrl(urlList.at(0), Rekonq::NewTab);
+ if( !mainWindow()->isActiveWindow() )
+ KWindowSystem::demandAttention(mainWindow()->winId(), true);
+ }
else
loadUrl(urlList.at(0), Rekonq::NewWindow);
}