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

@@ -40,7 +40,7 @@ void WSConnectionsTable::Add()
{
auto newConnection = std::make_shared<WSConnection>();
auto accepted = WSConnectionSettingsDialog::AskForSettings(
this, *newConnection);
GetSettingsWindow(), *newConnection);
if (!accepted) {
return;
}
@@ -143,7 +143,7 @@ static void openSettingsDialog()
auto oldName = connection->Name();
bool accepted = WSConnectionSettingsDialog::AskForSettings(
tabWidget->Table(), *connection.get());
GetSettingsWindow(), *connection.get());
if (accepted && oldName != connection->Name()) {
ConnectionSelectionSignalManager::Instance()->Rename(
QString::fromStdString(oldName),