mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 15:50:38 -04:00
Disable broadcast chat by default at compile time
This commit is contained in:
parent
cf94037c10
commit
53f8307bee
4 changed files with 25 additions and 6 deletions
|
@ -69,9 +69,9 @@ FriendsDialog::FriendsDialog(QWidget *parent)
|
|||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
if (instance == NULL) {
|
||||
instance = this;
|
||||
}
|
||||
if (!instance) instance = this;
|
||||
|
||||
#ifdef RS_DIRECT_CHAT
|
||||
QString msg = tr("Retroshare broadcast chat: messages are sent to all connected friends.");
|
||||
// "<font color='grey'>" + DateTime::formatTime(QTime::currentTime()) + "</font> -
|
||||
msg = QString("<font color='blue'><i>" + msg + "</i></font>");
|
||||
|
@ -82,6 +82,10 @@ FriendsDialog::FriendsDialog(QWidget *parent)
|
|||
this, SLOT(chatMessageReceived(ChatMessage)));
|
||||
connect(NotifyQt::getInstance(), SIGNAL(chatStatusChanged(ChatId,QString)),
|
||||
this, SLOT(chatStatusReceived(ChatId,QString)));
|
||||
#else // def RS_DIRECT_CHAT
|
||||
ui.tabWidget->removeTab(ui.tabWidget->indexOf(ui.groupChatTab));
|
||||
#endif // def RS_DIRECT_CHAT
|
||||
|
||||
|
||||
connect( ui.mypersonalstatusLabel, SIGNAL(clicked()), SLOT(statusmessage()));
|
||||
connect( ui.actionSet_your_Avatar, SIGNAL(triggered()), this, SLOT(getAvatar()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue