summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bellegarde <gnumdk@gmail.com>2011-02-10 12:32:05 +0100
committerCedric Bellegarde <gnumdk@gmail.com>2011-02-10 12:32:05 +0100
commit820e25d41deba791beda0f2f6c0a55b68653262f (patch)
treef51c6f4a7725fc37b23b9ee2bcdbf6781f7896be
parentFix issue 258901: disable stop button while not loading (diff)
downloadrekonq-820e25d41deba791beda0f2f6c0a55b68653262f.tar.xz
Fix issue 258905: mark window in taskbar when opening link from external apps: good compromise with issue 250502
-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);
}