From 95136eb354ece2506877a4103b627fdbdddb78e2 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sat, 29 May 2010 22:17:49 +0200 Subject: Disable the tabBar drag and drop when there is only one tab --- src/tabbar.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 -- cgit v1.2.1