mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
Save sorting on Chat lobby
This commit is contained in:
parent
226948cab5
commit
15a7487c27
@ -320,11 +320,20 @@ void ChatLobbyDialog::processSettings(bool load)
|
||||
|
||||
// state of splitter
|
||||
ui.splitter->restoreState(Settings->value("splitter").toByteArray());
|
||||
|
||||
// load sorting
|
||||
actionSortByActivity->setChecked(Settings->value("sortbyActivity", QVariant(false)).toBool());
|
||||
actionSortByName->setChecked(Settings->value("sortbyName", QVariant(true)).toBool());
|
||||
|
||||
} else {
|
||||
// save settings
|
||||
|
||||
// state of splitter
|
||||
Settings->setValue("splitter", ui.splitter->saveState());
|
||||
|
||||
//save sorting
|
||||
Settings->setValue("sortbyActivity", actionSortByActivity->isChecked());
|
||||
Settings->setValue("sortbyName", actionSortByName->isChecked());
|
||||
}
|
||||
|
||||
Settings->endGroup();
|
||||
|
Loading…
Reference in New Issue
Block a user