Fix about dialog having wrong icon

This commit is contained in:
Cacodemon345
2022-02-07 12:30:56 +06:00
parent eec8945fa3
commit 88789ec95d

View File

@@ -1415,7 +1415,15 @@ void MainWindow::on_actionAbout_86Box_triggered()
{
QDesktopServices::openUrl(QUrl("https://86box.net/"));
});
#ifdef RELEASE_BUILD
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-green.ico").pixmap(32, 32));
#elif defined ALPHA_BUILD
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-read.ico").pixmap(32, 32))
#elif defined BETA_BUILD
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-yellow.ico").pixmap(32, 32));
#else
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-gray.ico").pixmap(32, 32));
#endif
msgBox.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
msgBox.exec();
}