From 3a07a268ca9fbfabcc6125dedbbfe312763782b0 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 15 Aug 2023 21:57:42 +0200 Subject: [PATCH] Added to store last used group filter --- retroshare-gui/src/gui/TheWire/WireDialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/TheWire/WireDialog.cpp b/retroshare-gui/src/gui/TheWire/WireDialog.cpp index 38ea1b398..6738be68a 100644 --- a/retroshare-gui/src/gui/TheWire/WireDialog.cpp +++ b/retroshare-gui/src/gui/TheWire/WireDialog.cpp @@ -154,9 +154,16 @@ void WireDialog::processSettings(bool load) // state of splitter ui.splitter->restoreState(Settings->value("SplitterWire").toByteArray()); + + // state of filter combobox + int index = Settings->value("ShowGroup", 0).toInt(); + ui.comboBox_groupSet->setCurrentIndex(index); } else { // save settings + // state of filter combobox + Settings->setValue("ShowGroup", ui.comboBox_groupSet->currentIndex()); + // state of splitter Settings->setValue("SplitterWire", ui.splitter->saveState()); } @@ -1064,4 +1071,3 @@ void WireDialog::postGroupsPulses(std::list pulses) } } -