mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:59:38 +00:00
UI: AppInfoUtil::getInfo: Fix regression
This commit is contained in:
parent
dd05277c71
commit
a068b97e6e
@ -151,12 +151,6 @@ bool extractVersionInfo(const QString &appPath, AppInfo &appInfo)
|
||||
appInfo.productName = extractInfoText(infoData, langInfo, L"ProductName");
|
||||
appInfo.fileDescription = extractInfoText(infoData, langInfo, L"FileDescription");
|
||||
|
||||
// File description
|
||||
if (appInfo.fileDescription.isEmpty()) {
|
||||
appInfo.fileDescription =
|
||||
!appInfo.productName.isEmpty() ? appInfo.productName : FileUtil::fileName(appPath);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -192,6 +186,12 @@ bool getInfo(const QString &appPath, AppInfo &appInfo)
|
||||
|
||||
revertWow64FsRedirection(wow64FsRedir);
|
||||
|
||||
// File description
|
||||
if (appInfo.fileDescription.isEmpty()) {
|
||||
appInfo.fileDescription =
|
||||
!appInfo.productName.isEmpty() ? appInfo.productName : FileUtil::fileName(appPath);
|
||||
}
|
||||
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user