git-svn-id: svn://db.shs.com.ru/libs@362 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-03-04 20:51:13 +00:00
parent 85cbb93365
commit 300d30109d
2 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ void SessionManager::save() {
sr.setValue(spinsliders[i].first, spinsliders[i].second->value(), false);
for (int i = 0; i < tabs.size(); ++i)
sr.setValue(tabs[i].first, tabs[i].second->currentIndex(), false);
for (int i = 0; i < buttons.size(); ++i)
sr.setValue(buttons[i].first, buttons[i].second->isChecked(), false);
for (int i = 0; i < actions.size(); ++i)
sr.setValue(actions[i].first, actions[i].second->isChecked(), false);
for (int i = 0; i < stringlists.size(); ++i)
@@ -87,6 +89,8 @@ void SessionManager::load(bool onlyMainwindow) {
if (v >= 0 && v < t->count())
t->setCurrentIndex(v);
}
for (int i = 0; i < buttons.size(); ++i)
buttons[i].second->setChecked(sr.getValue(buttons[i].first, buttons[i].second->isChecked()));
for (int i = 0; i < actions.size(); ++i)
actions[i].second->setChecked(sr.getValue(actions[i].first, actions[i].second->isChecked()));
for (int i = 0; i < stringlists.size(); ++i)