diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-10-11 00:54:00 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-10-11 00:54:00 +0200 |
commit | 9e16a31dec67217deee14492f8b7a2cb1c42b7a5 (patch) | |
tree | 1eade48b0b845fa5dae4af4cbf12f7ed14b3ca90 | |
parent | Fix the checked state of a toolbar's bookmark folder which is dropped on itself. (diff) | |
download | rekonq-9e16a31dec67217deee14492f8b7a2cb1c42b7a5.tar.xz |
inlined "abused" function and removed 2 unuseful calls to updateTabBar
-rw-r--r-- | src/mainview.cpp | 10 | ||||
-rw-r--r-- | src/mainview.h | 2 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index ca604b2c..0cd61ddd 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -328,12 +328,6 @@ WebTab *MainView::newWebTab(bool focused) } -int MainView::originalWidthHint() const -{ - return m_originalWidthHint; -} - - void MainView::newTab() { WebView *w = newWebTab()->view(); @@ -403,8 +397,6 @@ void MainView::closeOtherTabs(int index) { closeTab(i); } - - updateTabBar(); } @@ -418,8 +410,6 @@ void MainView::cloneTab(int index) KUrl url = webTab(index)->url(); rApp->loadUrl(url, Rekonq::NewTab); - - updateTabBar(); } diff --git a/src/mainview.h b/src/mainview.h index f8aa94b7..8bd66161 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -105,7 +105,7 @@ public: return m_recentlyClosedTabs; } - int originalWidthHint() const; + inline int originalWidthHint() const { return m_originalWidthHint; }; Q_SIGNALS: // current tab signals |