Gui: Fix about image path
Merge ofa4d4a8e7d6accidentally didn't drop change to DlgAbout path. Nothing sets AboutImageDev congfig key, so partially revert said commit. Fixes:a4d4a8e7d6("Gui: Add about image for dev version")
This commit is contained in:
committed by
Chris Hennes
parent
d5bcf68e43
commit
f1032b47d4
@@ -164,11 +164,7 @@ QPixmap AboutDialog::aboutImage() const
|
||||
about_image.load(fi.filePath(), "PNG");
|
||||
}
|
||||
|
||||
// Use dev or generic version of image depending on current build version.
|
||||
const auto& suffix = App::Application::Config()["BuildVersionSuffix"];
|
||||
const auto about_path_key = (suffix == "dev") ? "AboutImageDev" : "AboutImage";
|
||||
const auto& about_path = App::Application::Config()[about_path_key];
|
||||
|
||||
const std::string about_path = App::Application::Config()["AboutImage"];
|
||||
if (!about_path.empty() && about_image.isNull()) {
|
||||
QString path = QString::fromStdString(about_path);
|
||||
if (QDir(path).isRelative()) {
|
||||
|
||||
Reference in New Issue
Block a user