Commit c8f05071 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDebugger: removed "Reload" button on live preview error

Reviewed-by:  Kai Koehne
parent 972eb8f6
......@@ -176,6 +176,12 @@ void EditorView::showEditorInfoBar(const QString &id,
m_infoWidgetLabel->setText(infoText);
m_infoWidgetButton->setText(buttonText);
if (object && !buttonText.isEmpty()) {
m_infoWidgetButton->show();
} else {
m_infoWidgetButton->hide();
}
m_infoWidgetButton->disconnect();
if (object && buttonPressMember)
connect(m_infoWidgetButton, SIGNAL(clicked()), object, buttonPressMember);
......
......@@ -584,7 +584,7 @@ void QmlJSLiveTextPreview::showSyncWarning(UnsyncronizableChangeType unsyncroniz
errorMessage.append(tr("You can continue debugging, but behavior can be unexpected."));
em->showEditorInfoBar(Constants::INFO_OUT_OF_SYNC, errorMessage, tr("Reload"), this, SLOT(reloadQmlViewer()));
em->showEditorInfoBar(Constants::INFO_OUT_OF_SYNC, errorMessage);
}
void QmlJSLiveTextPreview::reloadQmlViewer()
......
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