1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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.
This commit is contained in:
ezavod 2017-05-27 16:41:06 +02:00
parent 65b1463933
commit 7e5387cad2
No known key found for this signature in database
GPG Key ID: 5DFDD9A0D8E5A9B6

View File

@ -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)