diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-11-29 16:19:57 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2018-11-29 14:56:43 +0000 |
commit | f5203796e42d25bca7569df1cc746bbe995ee548 (patch) | |
tree | 54ec57dd27bdc228591f7a9fe3a36acc87ea2918 /src/plugins/git/gerrit/gerritplugin.cpp | |
parent | d3c10869103a2fcda06cdf458040ff4490702485 (diff) | |
download | qt-creator-f5203796e42d25bca7569df1cc746bbe995ee548.tar.gz |
Git: Use ICore::dialogParent as dialog parent
Change-Id: Idc3f2f4d27d3279f76b688fac635e8d38b2705f5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/git/gerrit/gerritplugin.cpp')
-rw-r--r-- | src/plugins/git/gerrit/gerritplugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index 13a49c4903..9098d3a330 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -319,11 +319,11 @@ void GerritPlugin::addToLocator(CommandLocator *locator) void GerritPlugin::push(const QString &topLevel) { // QScopedPointer is required to delete the dialog when leaving the function - GerritPushDialog dialog(topLevel, m_reviewers, m_parameters, ICore::mainWindow()); + GerritPushDialog dialog(topLevel, m_reviewers, m_parameters, ICore::dialogParent()); const QString initErrorMessage = dialog.initErrorMessage(); if (!initErrorMessage.isEmpty()) { - QMessageBox::warning(ICore::mainWindow(), tr("Initialization Failed"), initErrorMessage); + QMessageBox::warning(ICore::dialogParent(), tr("Initialization Failed"), initErrorMessage); return; } @@ -350,7 +350,7 @@ void GerritPlugin::openView() if (!ICore::showOptionsDialog("Gerrit")) return; } - GerritDialog *gd = new GerritDialog(m_parameters, m_server, currentRepository(), ICore::mainWindow()); + GerritDialog *gd = new GerritDialog(m_parameters, m_server, currentRepository(), ICore::dialogParent()); gd->setModal(false); connect(gd, &GerritDialog::fetchDisplay, this, [this](const QSharedPointer<GerritChange> &change) { fetch(change, FetchDisplay); }); @@ -433,7 +433,7 @@ void GerritPlugin::fetch(const QSharedPointer<GerritChange> &change, int mode) if (!verifiedRepository) { QMessageBox::StandardButton answer = QMessageBox::question( - ICore::mainWindow(), tr("Remote Not Verified"), + ICore::dialogParent(), tr("Remote Not Verified"), tr("Change host %1\nand project %2\n\nwere not verified among remotes" " in %3. Select different folder?") .arg(m_server->host, |