From 58c296c69d1907b2690d38dc8710ed88ac0e2c67 Mon Sep 17 00:00:00 2001 From: RetroPooh Date: Mon, 23 Jan 2017 00:25:17 +0300 Subject: [PATCH] hide typing notification setting in chat options by default --- retroshare-gui/src/gui/settings/ChatPage.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/settings/ChatPage.cpp b/retroshare-gui/src/gui/settings/ChatPage.cpp index 2293d41a0..8f74c69d9 100644 --- a/retroshare-gui/src/gui/settings/ChatPage.cpp +++ b/retroshare-gui/src/gui/settings/ChatPage.cpp @@ -34,6 +34,7 @@ #include "gui/chat/ChatDialog.h" #include "gui/notifyqt.h" #include "rsharesettings.h" +#include #include #include @@ -132,7 +133,7 @@ ChatPage::save(QString &/*errmsg*/) Settings->setChatSendAsPlainTextByDef(ui.sendAsPlainTextByDef->isChecked()); Settings->setChatLoadEmbeddedImages(ui.loadEmbeddedImages->isChecked()); Settings->setChatDoNotSendIsTyping(ui.DontSendTyping->isChecked()); - + Settings->setChatSearchCharToStartSearch(ui.sbSearch_CharToStart->value()); Settings->setChatSearchCaseSensitively(ui.cbSearch_CaseSensitively->isChecked()); Settings->setChatSearchWholeWords(ui.cbSearch_WholeWords->isChecked()); @@ -243,6 +244,12 @@ ChatPage::load() ui.loadEmbeddedImages->setChecked(Settings->getChatLoadEmbeddedImages()); ui.DontSendTyping->setChecked(Settings->getChatDoNotSendIsTyping()); + std::string advsetting; + if(rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES")) + { } + else + ui.DontSendTyping->hide(); + ui.sbSearch_CharToStart->setValue(Settings->getChatSearchCharToStartSearch()); ui.cbSearch_CaseSensitively->setChecked(Settings->getChatSearchCaseSensitively()); ui.cbSearch_WholeWords->setChecked(Settings->getChatSearchWholeWords());