Disable showing dialog in server for news

This commit is contained in:
Benau 2018-09-11 16:04:10 +08:00
parent 3337f41529
commit 300cdff07f

View File

@ -2098,7 +2098,7 @@ int main(int argc, char *argv[] )
// If an important news message exists it is shown in a popup dialog.
const core::stringw important_message =
NewsManager::get()->getImportantMessage();
if(important_message!="")
if(important_message!="" && !NetworkConfig::get()->isServer())
{
new MessageDialog(important_message,
MessageDialog::MESSAGE_DIALOG_OK,