forked from qt-creator/qt-creator
qmlpuppet: do not set an empty QT_MULTILANGUAGE_DATABASE
Change-Id: Ib64a2192692a2675852fd3071295c0ed8dc29d4d Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -514,7 +514,7 @@ QProcessEnvironment PuppetCreator::processEnvironment() const
|
|||||||
|
|
||||||
if (auto *rc = m_target->activeRunConfiguration()) {
|
if (auto *rc = m_target->activeRunConfiguration()) {
|
||||||
if (auto multiLanguageAspect = rc->aspect<QmlProjectManager::QmlMultiLanguageAspect>()) {
|
if (auto multiLanguageAspect = rc->aspect<QmlProjectManager::QmlMultiLanguageAspect>()) {
|
||||||
if (!multiLanguageAspect->databaseFilePath().isEmpty())
|
if (multiLanguageAspect->value() && !multiLanguageAspect->databaseFilePath().isEmpty())
|
||||||
environment.set("QT_MULTILANGUAGE_DATABASE", multiLanguageAspect->databaseFilePath().toString());
|
environment.set("QT_MULTILANGUAGE_DATABASE", multiLanguageAspect->databaseFilePath().toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user