summaryrefslogtreecommitdiff
path: root/src/tabbar.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/tabbar.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/tabbar.cpp')
-rw-r--r--src/tabbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 12745772..460a2464 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -153,8 +153,8 @@ void TabBar::showTabPreview(int tab)
WebTab *view = mv->webTab(tab);
WebTab *currentView = mv->webTab(currentIndex());
- // should fix bug #212219
- if(!currentView)
+ // check if view && currentView exist before using them :)
+ if(!currentView || !view)
return;
int w = tabSizeHint(tab).width();
@@ -199,7 +199,7 @@ void TabBar::mouseMoveEvent(QMouseEvent *event)
}
//if found and not the current tab then show tab preview
- if (tab != -1 && tab != currentIndex() && m_currentTabPreview != tab)
+ if (tab != -1 && tab != currentIndex() && m_currentTabPreview != tab && event->buttons() == Qt::NoButton)
{
showTabPreview(tab);
m_currentTabPreview = tab;