diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-08-05 19:28:27 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:04 +0100 |
commit | 8106174abd919ef39d60a293d8fe66ecb29620a3 (patch) | |
tree | 4a41457322eaab17367899cb0406416cea20c1a8 /src | |
parent | Clean up WebWindow ctor (diff) | |
download | rekonq-8106174abd919ef39d60a293d8fe66ecb29620a3.tar.xz |
set window object name right
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 5 |
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); |