diff --git a/retroshare-gui/src/gui/Preferences/GeneralDialog.cpp b/retroshare-gui/src/gui/Preferences/GeneralDialog.cpp index afb7293eb..66b5624ae 100644 --- a/retroshare-gui/src/gui/Preferences/GeneralDialog.cpp +++ b/retroshare-gui/src/gui/Preferences/GeneralDialog.cpp @@ -81,9 +81,15 @@ GeneralDialog::load() } - - bool GeneralDialog::startMinimized() const { if(ui.checkStartMinimized->isChecked()) return true; return ui.checkStartMinimized->isChecked(); } + +/** Called when the "show on startup" checkbox is toggled. */ +void +GeneralDialog::toggleShowOnStartup(bool checked) +{ + //RshareSettings _settings; + _settings->setShowMainWindowAtStart(checked); +} diff --git a/retroshare-gui/src/gui/Preferences/GeneralDialog.h b/retroshare-gui/src/gui/Preferences/GeneralDialog.h index 08042a3c0..37e13bbcd 100644 --- a/retroshare-gui/src/gui/Preferences/GeneralDialog.h +++ b/retroshare-gui/src/gui/Preferences/GeneralDialog.h @@ -49,7 +49,8 @@ public: private slots: - + /** Called when the "show on startup" checkbox is toggled. */ + void toggleShowOnStartup(bool checked); private: /** A VidaliaSettings object used for saving/loading settings */