diff --git a/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp b/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp index 09ea8f70d88..242347be194 100644 --- a/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp +++ b/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.cpp @@ -765,9 +765,12 @@ void ConnectionModelBackendDelegate::setCurrentRow(int i) //setup - ConnectionModel *model = qobject_cast(parent()); + update(); +} - qDebug() << Q_FUNC_INFO << i << model; +void ConnectionModelBackendDelegate::update() +{ + ConnectionModel *model = qobject_cast(parent()); QTC_ASSERT(model, return ); if (!model->connectionView()->isAttached()) diff --git a/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.h b/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.h index 59b92a405e9..850447de654 100644 --- a/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.h +++ b/src/plugins/qmldesigner/components/connectioneditor/connectionmodel.h @@ -270,6 +270,8 @@ public: Q_INVOKABLE void addElse(); Q_INVOKABLE void removeElse(); + void update(); + signals: void currentRowChanged(); void actionTypeChanged();