Axivion: Use dialogParent() instead of mainWindow() as dialog parent

Change-Id: Ia7aa8e0dcfe654ddc88550d4a220ab45c3fbc7c4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2025-02-06 17:18:58 +01:00
parent b5c22ff232
commit 7eb5258fd4

View File

@@ -681,7 +681,7 @@ static Group authorizationRecipe()
const AxivionServer server = settings().serverForId(serverId);
const QString text(Tr::tr("Enter the password for:\nDashboard: %1\nUser: %2")
.arg(server.dashboard, server.username));
*passwordStorage = QInputDialog::getText(ICore::mainWindow(),
*passwordStorage = QInputDialog::getText(ICore::dialogParent(),
Tr::tr("Axivion Server Password"), text, QLineEdit::Password, {}, &ok);
if (!ok)
return SetupResult::StopWithError;