From af770fda9cd07c26f9fbad1f493f67f695065182 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 26 Jan 2016 22:46:07 -0500 Subject: [PATCH] fixed messagebox to remember which from ID was used last time --- retroshare-gui/src/gui/msgs/MessageComposer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.cpp b/retroshare-gui/src/gui/msgs/MessageComposer.cpp index bd4002ed6..c53d73f10 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.cpp +++ b/retroshare-gui/src/gui/msgs/MessageComposer.cpp @@ -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();