diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 3135e7577..289a0c53d 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -186,16 +186,20 @@ void CImageInfo::InitInfos() const char * builddate = config.getString("builddate", "n/a").c_str(); #endif + std::string version_string; +#ifdef IMAGE_VERSION + version_string = IMAGE_VERSION; +#else const char * _version = config.getString("version", "U000000000000000").c_str(); static CFlashVersionInfo versionInfo(_version); - std::string version_string; version_string = versionInfo.getReleaseCycle(); version_string += " "; version_string += versionInfo.getType(); version_string += " ("; version_string += versionInfo.getDate(); version_string += ")"; +#endif struct utsname uts_info;