From 8106174abd919ef39d60a293d8fe66ecb29620a3 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 5 Aug 2012 19:28:27 +0200 Subject: set window object name right --- src/application.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.1