mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-11 19:58:49 -05:00
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:
@@ -40,8 +40,8 @@ ActionQueueTable *ActionQueueTable::Create()
|
||||
void ActionQueueTable::Add()
|
||||
{
|
||||
auto newQueue = std::make_shared<ActionQueue>();
|
||||
auto accepted =
|
||||
ActionQueueSettingsDialog::AskForSettings(this, *newQueue);
|
||||
auto accepted = ActionQueueSettingsDialog::AskForSettings(
|
||||
GetSettingsWindow(), *newQueue);
|
||||
if (!accepted) {
|
||||
return;
|
||||
}
|
||||
@@ -124,7 +124,7 @@ static void openSettingsDialog()
|
||||
|
||||
auto oldName = queue->Name();
|
||||
bool accepted = ActionQueueSettingsDialog::AskForSettings(
|
||||
tabWidget->Table(), *queue.get());
|
||||
GetSettingsWindow(), *queue.get());
|
||||
if (accepted && oldName != queue->Name()) {
|
||||
ActionQueueSignalManager::Instance()->Rename(
|
||||
QString::fromStdString(oldName),
|
||||
|
||||
Reference in New Issue
Block a user