Commit de6021c7 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Tim Jenssen
Browse files

QmlDesigner: If no types are available the dialog is implicitly canceled

Task-number: QTCREATORBUG-17179
Change-Id: I89cf2240f9f54072dc35c40fb56a709284ff3187
Reviewed-by: Tim Jenssen's avatarTim Jenssen <>
parent a0f1473d
......@@ -26,6 +26,8 @@
#include "addnewbackenddialog.h"
#include "ui_addnewbackenddialog.h"
#include <QPushButton>
namespace QmlDesigner {
AddNewBackendDialog::AddNewBackendDialog(QWidget *parent) :
......@@ -57,6 +59,7 @@ void AddNewBackendDialog::setupPossibleTypes(const QList<CppTypeData> &types)
for (const CppTypeData &typeData : types)
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(m_ui->comboBox->count() > 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment