Add window icon in error dialog of `openBrowserInAppMode()`

This commit is contained in:
Martchus 2023-03-28 00:05:03 +02:00
parent 57d826dfd5
commit 71a4f188eb
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,7 @@ static void openBrowserInAppMode(const QString &url)
QObject::connect(process, &Data::SyncthingProcess::errorOccurred, process, [process] {
auto messageBox = QMessageBox();
messageBox.setWindowTitle(QStringLiteral("Syncthing"));
messageBox.setWindowIcon(QIcon(QStringLiteral(":/icons/hicolor/scalable/app/syncthingtray.svg")));
messageBox.setIcon(QMessageBox::Critical);
messageBox.setText(QCoreApplication::translate("QtGui", "Unable to open Syncthing UI via \"%1\": %2").arg(app, process->errorString()));
messageBox.exec();