Merge pull request 'Fix bug 77624' (#534) from fix/bug-77624 into release/v9.2.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-apps/pulls/534
This commit is contained in:
Oleg Korshul
2025-11-26 08:33:02 +00:00

View File

@ -56,7 +56,7 @@ void CMainWindowImpl::refreshAboutVersion()
{
QJsonObject _json_obj;
auto _read_license_name = [](const QString& path) -> QString {
auto _read_license_name = [](QString& path) -> QString {
QFileInfo fi(path);
QDir dir = fi.dir();
QStringList files = dir.entryList(QStringList() << fi.fileName(),
@ -64,8 +64,8 @@ void CMainWindowImpl::refreshAboutVersion()
if (files.isEmpty())
return QString();
QString correctPath = dir.filePath(files.first());
QFile f(correctPath);
path = dir.filePath(files.first());
QFile f(path);
QString n;
if ( f.exists() ) {
if ( f.open(QIODevice::ReadOnly | QIODevice::Text )) {