summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);