mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-12 17:29:31 -04:00
fixed messagebox to remember which from ID was used last time
This commit is contained in:
parent
749ca08f9f
commit
af770fda9c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue