summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2010-02-02 23:08:40 +0100
committerPanagiotis Papadopoulos <pano_90@gmx.net>2010-02-02 23:08:40 +0100
commit5efd06bc3dd4c494aa799f5e774a9475a4fa717a (patch)
tree9540281ba60e520c5edb8949dc38766aae1b72ad /src/mainview.cpp
parenti18n fixes (diff)
parentrekonq 0.3.34 (diff)
downloadrekonq-5efd06bc3dd4c494aa799f5e774a9475a4fa717a.tar.xz
Merge branch 'master' of git://gitorious.org/rekonq/mainline into i18n
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 7dbe8b23..b26e7466 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -146,14 +146,11 @@ void MainView::updateTabButtonPosition()
if (tabWidthHint < sizeHint().width()/4)
newPosX = tabWidgetWidth - m_addTabButton->width();
- // detecting Y position
- int newPosY = m_tabBar->height() - m_addTabButton->height();
- if(newPosY < 0)
- newPosY = 5; // this hardcoded value is used in just ONE situation:
- // the first time an user changes the "Always Show Tab Bar" settings
- // try some better fixes, if you can :D
-
- m_addTabButton->move(newPosX, newPosY);
+ // Y position is fixed
+ // Here I noticed with some emphiric valutations ( :D )
+ // that 2 look better than 0, just that..
+
+ m_addTabButton->move(newPosX, 2);
}
}
@@ -511,7 +508,7 @@ void MainView::closeTab(int index)
removeTab(index);
updateTabBar(); // UI operation: do it ASAP!!
- delete tab; // webView is scheduled for deletion.
+ tab->deleteLater(); // webView is scheduled for deletion.
emit tabsChanged();