mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed double saving of distant chat permissions (GUI + libretroshare) leading to inconsistencies
This commit is contained in:
parent
242b5229d1
commit
a04ab8664f
@ -125,9 +125,6 @@ void ChatPage::updateFontsAndEmotes()
|
|||||||
/** Saves the changes on this page */
|
/** Saves the changes on this page */
|
||||||
void ChatPage::updateChatParams()
|
void ChatPage::updateChatParams()
|
||||||
{
|
{
|
||||||
// state of distant Chat combobox
|
|
||||||
Settings->setValue("DistantChat", ui.distantChatComboBox->currentIndex());
|
|
||||||
|
|
||||||
Settings->setChatScreenFont(fontTempChat.toString());
|
Settings->setChatScreenFont(fontTempChat.toString());
|
||||||
NotifyQt::getInstance()->notifyChatFontChanged();
|
NotifyQt::getInstance()->notifyChatFontChanged();
|
||||||
|
|
||||||
@ -396,8 +393,22 @@ ChatPage::load()
|
|||||||
Settings->endGroup();
|
Settings->endGroup();
|
||||||
|
|
||||||
// state of distant Chat combobox
|
// state of distant Chat combobox
|
||||||
int index = Settings->value("DistantChat", 0).toInt();
|
|
||||||
whileBlocking(ui.distantChatComboBox)->setCurrentIndex(index);
|
switch(rsMsgs->getDistantChatPermissionFlags())
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
case RS_DISTANT_CHAT_CONTACT_PERMISSION_FLAG_FILTER_NONE:
|
||||||
|
whileBlocking(ui.distantChatComboBox)->setCurrentIndex(0);
|
||||||
|
break ;
|
||||||
|
|
||||||
|
case RS_DISTANT_CHAT_CONTACT_PERMISSION_FLAG_FILTER_NON_CONTACTS:
|
||||||
|
whileBlocking(ui.distantChatComboBox)->setCurrentIndex(1);
|
||||||
|
break ;
|
||||||
|
|
||||||
|
case RS_DISTANT_CHAT_CONTACT_PERMISSION_FLAG_FILTER_EVERYBODY:
|
||||||
|
whileBlocking(ui.distantChatComboBox)->setCurrentIndex(2);
|
||||||
|
break ;
|
||||||
|
}
|
||||||
|
|
||||||
fontTempChat.fromString(Settings->getChatScreenFont());
|
fontTempChat.fromString(Settings->getChatScreenFont());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user