Commit 4b772f6a authored by Robert Loehning's avatar Robert Loehning Committed by Tobias Hunger
Browse files

Mercurial: Assign parent to dialogs



Change-Id: I8c875b86610a9a647821cca563ff4c1a0c11cbaa
Reviewed-by: default avatarNikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 0d11c794
......@@ -296,7 +296,7 @@ void MercurialPlugin::revertCurrentFile()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasFile(), return);
RevertDialog reverter;
RevertDialog reverter(Core::ICore::dialogParent());
if (reverter.exec() != QDialog::Accepted)
return;
m_client->revertFile(state.currentFileTopLevel(), state.relativeCurrentFile(), reverter.revision());
......@@ -362,7 +362,7 @@ void MercurialPlugin::revertMulti()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
RevertDialog reverter;
RevertDialog reverter(Core::ICore::dialogParent());
if (reverter.exec() != QDialog::Accepted)
return;
m_client->revertAll(state.topLevel(), reverter.revision());
......@@ -439,7 +439,7 @@ void MercurialPlugin::pull()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
SrcDestDialog dialog(SrcDestDialog::incoming);
SrcDestDialog dialog(SrcDestDialog::incoming, Core::ICore::dialogParent());
dialog.setWindowTitle(tr("Pull Source"));
if (dialog.exec() != QDialog::Accepted)
return;
......@@ -451,7 +451,7 @@ void MercurialPlugin::push()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
SrcDestDialog dialog(SrcDestDialog::outgoing);
SrcDestDialog dialog(SrcDestDialog::outgoing, Core::ICore::dialogParent());
dialog.setWindowTitle(tr("Push Destination"));
if (dialog.exec() != QDialog::Accepted)
return;
......@@ -463,7 +463,7 @@ void MercurialPlugin::update()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
RevertDialog updateDialog;
RevertDialog updateDialog(Core::ICore::dialogParent());
updateDialog.setWindowTitle(tr("Update"));
if (updateDialog.exec() != QDialog::Accepted)
return;
......@@ -475,7 +475,7 @@ void MercurialPlugin::import()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
QFileDialog importDialog;
QFileDialog importDialog(Core::ICore::dialogParent());
importDialog.setFileMode(QFileDialog::ExistingFiles);
importDialog.setViewMode(QFileDialog::Detail);
......@@ -491,7 +491,7 @@ void MercurialPlugin::incoming()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
SrcDestDialog dialog(SrcDestDialog::incoming);
SrcDestDialog dialog(SrcDestDialog::incoming, Core::ICore::dialogParent());
dialog.setWindowTitle(tr("Incoming Source"));
if (dialog.exec() != QDialog::Accepted)
return;
......
Supports Markdown
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