From b8835a8a5a36e1b8574c1d5b18a68a872f4d529d Mon Sep 17 00:00:00 2001
From: sithlord48 The connection to server '%1' didn't work. Failed to connect to the server '%1'. Two of your client computers have the same name or there are "
- "two instances of the client process running. Please ensure that you're using a unique name and that only a "
- "single client process is running. A Client with your name is already connected to the server.
Please try to connect to the server using the server IP address " - "instead of the hostname.
" - "If that doesn't work, please check your TLS and " - "firewall settings.
"; + message.append( + QObject::tr( // + "Please try to connect to the server using the server IP address " + "instead of the hostname.
" + "If that doesn't work, please check your TLS and " + "firewall settings.
" + ) + ); } else if (error == GenericError) { - message += // - "Please check your TLS and firewall settings.
"; + message.append(QObject::tr("Please check your TLS and firewall settings.
")); } else { qFatal("unknown client error"); } - QMessageBox dialog(parent); - dialog.addButton(QObject::tr("Close"), QMessageBox::RejectRole); - dialog.setText(message); - dialog.exec(); + auto title = QObject::tr("%1 Connection Error").arg(kAppName); + + QMessageBox::warning(parent, title, message); } NewClientPromptResult showNewClientPrompt(QWidget *parent, const QString &clientName, bool serverRequiresPeerAuth)