summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-30 09:32:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-30 09:32:58 +0200
commitafa78cbb781a61dfa4cd98628a55c8f59605ef49 (patch)
tree1545f0fb10618a70c718e7123e91de2b0928f146 /src/tabbar.cpp
parentDon't start a download if user canceled it (diff)
parentDisable the tabBar drag and drop when there is only one tab (diff)
downloadrekonq-afa78cbb781a61dfa4cd98628a55c8f59605ef49.tar.xz
Merge commit 'refs/merge-requests/2287' of git://gitorious.org/rekonq/mainline into m2287
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