summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-05-29 22:17:49 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-05-29 22:17:49 +0200
commit95136eb354ece2506877a4103b627fdbdddb78e2 (patch)
treeec09289c9fb9fde674add5c535b15a7d0e6f173d /src/tabbar.cpp
parentMerge commit 'refs/merge-requests/2286' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-95136eb354ece2506877a4103b627fdbdddb78e2.tar.xz
Disable the tabBar drag and drop when there is only one tab
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 1274d813..5d6b7b2c 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -186,6 +186,11 @@ void TabBar::showTabPreview(int tab)
void TabBar::mouseMoveEvent(QMouseEvent *event)
{
+ if (count() == 1)
+ {
+ return;
+ }
+
if (event->buttons() & Qt::LeftButton)
{
// hide addNewTabButton when moving tabs