SessionManager stacked widget bug fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user