mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
fixed messagebox to remember which from ID was used last time
This commit is contained in:
parent
749ca08f9f
commit
af770fda9c
@ -420,6 +420,10 @@ void MessageComposer::processSettings(bool bLoad)
|
||||
int index = Settings->value("ShowType", 0).toInt();
|
||||
ui.filterComboBox->setCurrentIndex(index);
|
||||
|
||||
RsGxsId resp_to_id ( Settings->value("LastRespondTo").toString().toStdString());
|
||||
|
||||
if(!resp_to_id.isNull())
|
||||
ui.respond_to_CB->setDefaultId(resp_to_id);
|
||||
} else {
|
||||
// save settings
|
||||
|
||||
@ -433,6 +437,7 @@ void MessageComposer::processSettings(bool bLoad)
|
||||
// state of filter combobox
|
||||
Settings->setValue("ShowType", ui.filterComboBox->currentIndex());
|
||||
|
||||
Settings->setValue("LastRespondTo",ui.respond_to_CB->itemData(ui.respond_to_CB->currentIndex()).toString());
|
||||
}
|
||||
|
||||
Settings->endGroup();
|
||||
|
Loading…
Reference in New Issue
Block a user