Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(ui): do not save splitter state in multiple windows mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ezavod committed May 27, 2017
1 parent 65b1463 commit 7e5387c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e5387c

Please sign in to comment.