diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp index d2fcc4a20..943f15f16 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp @@ -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();