Fix AppImage build.

This commit is contained in:
Roman Telezhynskyi 2024-04-18 16:11:19 +03:00
parent d896fa01fc
commit 586c4b319a
2 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ void VAbstractApplication::ClearTranslation()
delete qtTranslator;
}
#if defined(Q_OS_WIN) && !defined(QBS_BUILD)
#if (defined(Q_OS_WIN) && !defined(QBS_BUILD)) || defined(APPIMAGE)
if (not qtxmlTranslator.isNull())
{
removeTranslator(qtxmlTranslator);

View File

@ -138,7 +138,7 @@ protected:
VCommonSettings *settings{nullptr};
QPointer<QTranslator> qtTranslator{nullptr};
#if defined(Q_OS_WIN) && !defined(QBS_BUILD)
#if (defined(Q_OS_WIN) && !defined(QBS_BUILD)) || defined(APPIMAGE)
QPointer<QTranslator> qtxmlTranslator{nullptr};
QPointer<QTranslator> qtBaseTranslator{nullptr};
#endif // defined(Q_OS_WIN) && !defined(QBS_BUILD)