mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05:00
Added back to display the filter for Friends selection in Message composer
* Added back to display the filter for Friends selection in Message composer * to get enabled with the flag direct_chat
This commit is contained in:
parent
918513671a
commit
f495b7e28d
@ -219,7 +219,11 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WindowFlags flags)
|
||||
/* initialize friends list */
|
||||
ui.friendSelectionWidget->setHeaderText(tr("Send To:"));
|
||||
ui.friendSelectionWidget->setModus(FriendSelectionWidget::MODUS_MULTI);
|
||||
ui.friendSelectionWidget->setShowType(FriendSelectionWidget::SHOW_GXS);
|
||||
ui.friendSelectionWidget->setShowType(FriendSelectionWidget::SHOW_GXS
|
||||
#ifdef RS_DIRECT_CHAT
|
||||
| FriendSelectionWidget::SHOW_SSL
|
||||
#endif // RS_DIRECT_CHAT
|
||||
);
|
||||
ui.friendSelectionWidget->start();
|
||||
|
||||
QActionGroup *grp = new QActionGroup(this);
|
||||
@ -265,6 +269,9 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WindowFlags flags)
|
||||
/* Add filter types */
|
||||
ui.filterComboBox->addItem(tr("All people"));
|
||||
ui.filterComboBox->addItem(tr("My contacts"));
|
||||
#ifdef RS_DIRECT_CHAT
|
||||
ui.filterComboBox->addItem(tr("Friend Nodes"));
|
||||
#endif // RS_DIRECT_CHAT
|
||||
ui.filterComboBox->setCurrentIndex(0);
|
||||
|
||||
if(rsIdentity->nbRegularContacts() > 0)
|
||||
@ -2608,6 +2615,11 @@ void MessageComposer::filterComboBoxChanged(int i)
|
||||
case 1:
|
||||
ui.friendSelectionWidget->setShowType(FriendSelectionWidget::SHOW_CONTACTS);
|
||||
break;
|
||||
#ifdef RS_DIRECT_CHAT
|
||||
case 2:
|
||||
ui.friendSelectionWidget->setShowType(FriendSelectionWidget::SHOW_SSL);
|
||||
break;
|
||||
#endif // RS_DIRECT_CHAT
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user