From 7e5387cad283877c422b2e6d4a8bd9404fff67cd Mon Sep 17 00:00:00 2001 From: ezavod Date: Sat, 27 May 2017 16:41:06 +0200 Subject: [PATCH] fix(ui): do not save splitter state in multiple windows mode In multiple windows mode there are no two widgets that are separated by the splitter, there is just one widget. This changes the splitter state without the users intention. --- src/widget/widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 5369e794e..1ef7f1888 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -2000,7 +2000,9 @@ void Widget::saveWindowGeometry() void Widget::saveSplitterGeometry() { - Settings::getInstance().setSplitterState(ui->mainSplitter->saveState()); + if (!Settings::getInstance().getSeparateWindow()) { + Settings::getInstance().setSplitterState(ui->mainSplitter->saveState()); + } } void Widget::onSplitterMoved(int pos, int index)