From e9fabc34e93ea8205447fd9623a54f4648ef9f90 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 16 Jun 2010 19:00:28 +0000 Subject: [PATCH] saved the state of the "hide unconnected" button in settings git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3150 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index a56db5205..64367f83a 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -284,6 +284,9 @@ void PeersDialog::processSettings(bool bLoad) // state of peer tree header->restoreState(Settings->value("PeerTree").toByteArray()); + // state of hideUnconnected + ui.hide_unconnected->setChecked(Settings->value("hideUnconnected", false).toBool()); + // state of splitter ui.splitter->restoreState(Settings->value("Splitter").toByteArray()); } else { @@ -292,6 +295,9 @@ void PeersDialog::processSettings(bool bLoad) // state of peer tree Settings->setValue("PeerTree", header->saveState()); + // state of hideUnconnected + Settings->setValue("hideUnconnected", ui.hide_unconnected->isChecked()); + // state of splitter Settings->setValue("Splitter", ui.splitter->saveState()); }