forked from qt-creator/qt-creator
qmlpreview: fix crash while closing
Change-Id: Iee1083ff7c3e2e6dd511f1d54d72681e402d6c24 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -222,7 +222,7 @@ QWidget *SwitchLanguageComboboxAction::createWidget(QWidget *parent)
|
||||
comboBox->addItem(tr("Default"));
|
||||
|
||||
auto refreshComboBoxFunction = [this, comboBox, toolTip] (ProjectExplorer::Project *project) {
|
||||
if (comboBox) {
|
||||
if (comboBox && project) {
|
||||
QString errorMessage;
|
||||
auto locales = project->availableQmlPreviewTranslations(&errorMessage);
|
||||
if (!errorMessage.isEmpty())
|
||||
|
Reference in New Issue
Block a user