SessionManager stacked widget bug fix

This commit is contained in:
2021-11-07 00:17:55 +03:00
parent 66d7e2ccde
commit 5f1616b050

View File

@@ -215,7 +215,7 @@ void SessionManager::load(bool onlyMainwindow) {
for (int i = 0; i < buttons.size(); ++i) for (int i = 0; i < buttons.size(); ++i)
buttons[i].second->setChecked(sr.getValue(buttons[i].first, buttons[i].second->isChecked()).toBool()); buttons[i].second->setChecked(sr.getValue(buttons[i].first, buttons[i].second->isChecked()).toBool());
for (int i = 0; i < stacks.size(); ++i) for (int i = 0; i < stacks.size(); ++i)
stacks[i].second->setCurrentIndex(qMin<int>(sr.getValue(stacks[i].first, stacks[i].second->currentIndex()).toBool(), stacks[i].second->count())); stacks[i].second->setCurrentIndex(qMin<int>(sr.getValue(stacks[i].first, stacks[i].second->currentIndex()).toInt(), stacks[i].second->count()));
for (int i = 0; i < actions.size(); ++i) for (int i = 0; i < actions.size(); ++i)
actions[i].second->setChecked(sr.getValue(actions[i].first, actions[i].second->isChecked()).toBool()); actions[i].second->setChecked(sr.getValue(actions[i].first, actions[i].second->isChecked()).toBool());
for (int i = 0; i < stringlists.size(); ++i) for (int i = 0; i < stringlists.size(); ++i)