mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
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:
@ -56,7 +56,7 @@ void CMainWindowImpl::refreshAboutVersion()
|
|||||||
{
|
{
|
||||||
QJsonObject _json_obj;
|
QJsonObject _json_obj;
|
||||||
|
|
||||||
auto _read_license_name = [](const QString& path) -> QString {
|
auto _read_license_name = [](QString& path) -> QString {
|
||||||
QFileInfo fi(path);
|
QFileInfo fi(path);
|
||||||
QDir dir = fi.dir();
|
QDir dir = fi.dir();
|
||||||
QStringList files = dir.entryList(QStringList() << fi.fileName(),
|
QStringList files = dir.entryList(QStringList() << fi.fileName(),
|
||||||
@ -64,8 +64,8 @@ void CMainWindowImpl::refreshAboutVersion()
|
|||||||
if (files.isEmpty())
|
if (files.isEmpty())
|
||||||
return QString();
|
return QString();
|
||||||
|
|
||||||
QString correctPath = dir.filePath(files.first());
|
path = dir.filePath(files.first());
|
||||||
QFile f(correctPath);
|
QFile f(path);
|
||||||
QString n;
|
QString n;
|
||||||
if ( f.exists() ) {
|
if ( f.exists() ) {
|
||||||
if ( f.open(QIODevice::ReadOnly | QIODevice::Text )) {
|
if ( f.open(QIODevice::ReadOnly | QIODevice::Text )) {
|
||||||
|
|||||||
Reference in New Issue
Block a user