From 931ddaef7950ce65c5b442fb4305dfc72656b7e7 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 4 Jul 2017 23:13:03 +0200 Subject: [PATCH] set load thread to false for channels on default. Fixed missing () in connect --- retroshare-gui/src/gui/settings/ChannelPage.cpp | 7 +++++-- retroshare-gui/src/gui/settings/rsharesettings.cpp | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/settings/ChannelPage.cpp b/retroshare-gui/src/gui/settings/ChannelPage.cpp index 199dd5b3a..eff89a5e5 100644 --- a/retroshare-gui/src/gui/settings/ChannelPage.cpp +++ b/retroshare-gui/src/gui/settings/ChannelPage.cpp @@ -33,10 +33,13 @@ ChannelPage::ChannelPage(QWidget * parent, Qt::WindowFlags flags) ui.groupFrameSettingsWidget->setOpenAllInNewTabText(tr("Open each channel in a new tab")); ui.groupFrameSettingsWidget->setType(GroupFrameSettings::Channel) ; - connect(ui.loadThreadCheckBox,SIGNAL(toggled(bool)),this,SLOT(updateLoadThread)) ; + connect(ui.loadThreadCheckBox,SIGNAL(toggled(bool)),this,SLOT(updateLoadThread())) ; } -void ChannelPage::updateLoadThread() { Settings->setChannelLoadThread(ui.loadThreadCheckBox->isChecked()); } +void ChannelPage::updateLoadThread() +{ + Settings->setChannelLoadThread(ui.loadThreadCheckBox->isChecked()); +} ChannelPage::~ChannelPage() { diff --git a/retroshare-gui/src/gui/settings/rsharesettings.cpp b/retroshare-gui/src/gui/settings/rsharesettings.cpp index f550c66be..1ad2a76d3 100644 --- a/retroshare-gui/src/gui/settings/rsharesettings.cpp +++ b/retroshare-gui/src/gui/settings/rsharesettings.cpp @@ -1066,7 +1066,7 @@ void RshareSettings::setForumLoadEmoticons(bool value) /* Channel */ bool RshareSettings::getChannelLoadThread() { - return valueFromGroup("Channel", "LoadThread", true).toBool(); + return valueFromGroup("Channel", "LoadThread", false).toBool(); } void RshareSettings::setChannelLoadThread(bool value)