summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-10-11 00:54:00 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-10-11 00:54:00 +0200
commit9e16a31dec67217deee14492f8b7a2cb1c42b7a5 (patch)
tree1eade48b0b845fa5dae4af4cbf12f7ed14b3ca90
parentFix the checked state of a toolbar's bookmark folder which is dropped on itself. (diff)
downloadrekonq-9e16a31dec67217deee14492f8b7a2cb1c42b7a5.tar.xz
inlined "abused" function and removed 2 unuseful calls to updateTabBar
-rw-r--r--src/mainview.cpp10
-rw-r--r--src/mainview.h2
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