CTweakEditor: Make use of QSignalBlocker

This commit is contained in:
Lioncash 2020-07-10 11:14:30 -04:00
parent 63678a558b
commit 0b33933a16
1 changed files with 1 additions and 3 deletions

View File

@ -103,7 +103,7 @@ void CTweakEditor::OnProjectChanged(CGameProject* pNewProject)
mpUI->PropertyView->ClearProperties();
close();
mpUI->TweakTabs->blockSignals(true);
[[maybe_unused]] const QSignalBlocker tweakBlocker{mpUI->TweakTabs};
while (mpUI->TweakTabs->count() > 0)
{
@ -141,8 +141,6 @@ void CTweakEditor::OnProjectChanged(CGameProject* pNewProject)
SetActiveTweakIndex(0);
}
mpUI->TweakTabs->blockSignals(false);
// Hide "save and repack" button for MP2+ as it doesn't do anything different from the regular Save button
mpUI->ActionSaveAndRepack->setVisible(!pNewProject || pNewProject->Game() <= EGame::Prime);
}