diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-05-29 22:17:49 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-05-29 22:17:49 +0200 |
commit | 95136eb354ece2506877a4103b627fdbdddb78e2 (patch) | |
tree | ec09289c9fb9fde674add5c535b15a7d0e6f173d /src | |
parent | Merge commit 'refs/merge-requests/2286' of git://gitorious.org/rekonq/mainlin... (diff) | |
download | rekonq-95136eb354ece2506877a4103b627fdbdddb78e2.tar.xz |
Disable the tabBar drag and drop when there is only one tab
Diffstat (limited to 'src')
-rw-r--r-- | src/tabbar.cpp | 5 |
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 |