summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-20 03:29:06 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-20 03:29:06 +0200
commit19d50ee04348c836b12c67ef463bb3faa186a3a5 (patch)
treec0a202c664553a5e2a57fe890a05f36c3bca3661 /src
parentAppend the detached tab in the right widget bar (diff)
downloadrekonq-19d50ee04348c836b12c67ef463bb3faa186a3a5.tar.xz
Activate window externally triggered
BUG: 238280
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 366191f4..0fead4a6 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -167,7 +167,14 @@ int Application::newInstance()
if (index > 0)
{
MainWindow *m = m_mainWindows.at(index - 1).data();
- m->activateWindow();
+ if(m->isMinimized())
+ m->showNormal();
+ if( !m->isActiveWindow() )
+ {
+ m->activateWindow();
+ m->raise();
+ }
+
Q_FOREACH(const KUrl &u, urlList)
loadUrl(u, Rekonq::NewCurrentTab);
}