mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Guard QXmpp with #ifdef
This commit is contained in:
parent
dbdb87a1a2
commit
79bf70acb4
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,7 @@ void DialogsManager::showScriptEditor() {
|
|||
}
|
||||
|
||||
void DialogsManager::setupChat() {
|
||||
#ifdef HAVE_QXMPP
|
||||
const QXmppClient& xmppClient = XmppClient::getInstance().getXMPPClient();
|
||||
connect(&xmppClient, &QXmppClient::connected, this, &DialogsManager::toggleChat);
|
||||
connect(&xmppClient, &QXmppClient::disconnected, this, &DialogsManager::toggleChat);
|
||||
|
@ -171,6 +172,7 @@ void DialogsManager::setupChat() {
|
|||
QDir::setCurrent(PathUtils::resourcesPath());
|
||||
// init chat window to listen chat
|
||||
maybeCreateDialog(_chatWindow);
|
||||
#endif
|
||||
}
|
||||
|
||||
void DialogsManager::showChat() {
|
||||
|
|
Loading…
Reference in a new issue