Qt: Make dialogues more consistent

This commit is contained in:
spycrab
2018-05-06 18:02:39 +02:00
parent c3d88a622d
commit 7cd30810a3
10 changed files with 18 additions and 10 deletions

View File

@ -69,7 +69,7 @@ void PatchesWidget::OnAdd()
PatchEngine::Patch patch;
patch.user_defined = true;
if (NewPatchDialog(patch).exec())
if (NewPatchDialog(this, patch).exec())
{
m_patches.push_back(patch);
SavePatches();
@ -93,7 +93,7 @@ void PatchesWidget::OnEdit()
patch.name = tr("%1 (Copy)").arg(QString::fromStdString(patch.name)).toStdString();
}
if (NewPatchDialog(patch).exec())
if (NewPatchDialog(this, patch).exec())
{
if (patch.user_defined)
{