mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
commit
7ee0b4575e
@ -22,6 +22,7 @@
|
|||||||
#include "ChannelPage.h"
|
#include "ChannelPage.h"
|
||||||
#include "rsharesettings.h"
|
#include "rsharesettings.h"
|
||||||
#include "util/misc.h"
|
#include "util/misc.h"
|
||||||
|
#include "gui/notifyqt.h"
|
||||||
|
|
||||||
ChannelPage::ChannelPage(QWidget * parent, Qt::WindowFlags flags)
|
ChannelPage::ChannelPage(QWidget * parent, Qt::WindowFlags flags)
|
||||||
: ConfigPage(parent, flags)
|
: ConfigPage(parent, flags)
|
||||||
@ -33,10 +34,14 @@ ChannelPage::ChannelPage(QWidget * parent, Qt::WindowFlags flags)
|
|||||||
ui.groupFrameSettingsWidget->setOpenAllInNewTabText(tr("Open each channel in a new tab"));
|
ui.groupFrameSettingsWidget->setOpenAllInNewTabText(tr("Open each channel in a new tab"));
|
||||||
ui.groupFrameSettingsWidget->setType(GroupFrameSettings::Channel) ;
|
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());
|
||||||
|
NotifyQt::getInstance()->notifySettingsChanged();
|
||||||
|
}
|
||||||
|
|
||||||
ChannelPage::~ChannelPage()
|
ChannelPage::~ChannelPage()
|
||||||
{
|
{
|
||||||
|
@ -1066,7 +1066,7 @@ void RshareSettings::setForumLoadEmoticons(bool value)
|
|||||||
/* Channel */
|
/* Channel */
|
||||||
bool RshareSettings::getChannelLoadThread()
|
bool RshareSettings::getChannelLoadThread()
|
||||||
{
|
{
|
||||||
return valueFromGroup("Channel", "LoadThread", true).toBool();
|
return valueFromGroup("Channel", "LoadThread", false).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RshareSettings::setChannelLoadThread(bool value)
|
void RshareSettings::setChannelLoadThread(bool value)
|
||||||
|
Loading…
Reference in New Issue
Block a user