summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/qmainwindowlayout.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/qmainwindowlayout.cpp b/src/gui/widgets/qmainwindowlayout.cpp
index 2f765a4..cae4070 100644
--- a/src/gui/widgets/qmainwindowlayout.cpp
+++ b/src/gui/widgets/qmainwindowlayout.cpp
@@ -1368,10 +1368,11 @@ bool QMainWindowLayout::separatorMove(const QPoint &pos)
bool QMainWindowLayout::endSeparatorMove(const QPoint&)
{
- bool result = !movingSeparator.isEmpty();
+ if (movingSeparator.isEmpty())
+ return false;
movingSeparator.clear();
savedState.clear();
- return result;
+ return true;
}
void QMainWindowLayout::raise(QDockWidget *widget)