diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index 57e8fd269e4..8652974c420 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -340,8 +340,8 @@ void GerritPlugin::openView() { if (m_dialog.isNull()) { while (!m_parameters->isValid()) { - Core::AsynchronousMessageBox::warning(tr("Error"), - tr("Invalid Gerrit configuration. Host, user and ssh binary are mandatory.")); + QMessageBox::warning(Core::ICore::dialogParent(), tr("Error"), + tr("Invalid Gerrit configuration. Host, user and ssh binary are mandatory.")); if (!ICore::showOptionsDialog("Gerrit")) return; }