Fix UI issues when opening ItemSettingsDialogs

Some widgets were displayed incorrectly if the parent of the dialog
window is not the main settings window
This commit is contained in:
WarmUpTill
2025-03-09 16:21:52 +01:00
committed by WarmUpTill
parent ab5102f5ca
commit 202c36646c
4 changed files with 11 additions and 11 deletions

View File

@@ -43,8 +43,8 @@ VariableTable *VariableTable::Create()
void VariableTable::Add()
{
auto newVariable = std::make_shared<Variable>();
auto accepted =
VariableSettingsDialog::AskForSettings(this, *newVariable);
auto accepted = VariableSettingsDialog::AskForSettings(
GetSettingsWindow(), *newVariable);
if (!accepted) {
return;
}
@@ -184,7 +184,7 @@ static void openSettingsDialog()
auto oldName = variable->Name();
bool accepted = VariableSettingsDialog::AskForSettings(
tabWidget->Table(), *variable.get());
GetSettingsWindow(), *variable.get());
if (accepted && oldName != variable->Name()) {
VariableSignalManager::Instance()->Rename(
QString::fromStdString(oldName),