summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-05 19:28:27 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit8106174abd919ef39d60a293d8fe66ecb29620a3 (patch)
tree4a41457322eaab17367899cb0406416cea20c1a8 /src
parentClean up WebWindow ctor (diff)
downloadrekonq-8106174abd919ef39d60a293d8fe66ecb29620a3.tar.xz
set window object name right
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 8cd0a728..a3825f2c 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -316,6 +316,11 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
TabWindow *Application::newTabWindow()
{
TabWindow *w = new TabWindow;
+
+ // set object name
+ int n = m_tabWindows.count() + 1;
+ w->setObjectName( QL1S("win") + QString::number(n) );
+
// This is used to track which window was activated most recently
w->installEventFilter(this);