From 8ac8492167e6a5e410d927fc672aa9be869faf04 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 4 Apr 2021 00:12:53 +0200 Subject: [PATCH] Gui: [skip ci] support user-defined about image --- src/Gui/MainWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 0be1e91e8d..839bcb2c0b 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -1460,8 +1460,12 @@ QPixmap MainWindow::aboutImage() const { // See if we have a custom About screen image set QPixmap about_image; + QFileInfo fi(QString::fromLatin1("images:about_image.png")); + if (fi.isFile() && fi.exists()) + about_image.load(fi.filePath(), "PNG"); + std::string about_path = App::Application::Config()["AboutImage"]; - if (!about_path.empty()) { + if (!about_path.empty() && about_image.isNull()) { QString path = QString::fromUtf8(about_path.c_str()); if (QDir(path).isRelative()) { QString home = QString::fromUtf8(App::GetApplication().getHomePath());