forked from qt-creator/qt-creator
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:
@@ -681,7 +681,7 @@ static Group authorizationRecipe()
|
|||||||
const AxivionServer server = settings().serverForId(serverId);
|
const AxivionServer server = settings().serverForId(serverId);
|
||||||
const QString text(Tr::tr("Enter the password for:\nDashboard: %1\nUser: %2")
|
const QString text(Tr::tr("Enter the password for:\nDashboard: %1\nUser: %2")
|
||||||
.arg(server.dashboard, server.username));
|
.arg(server.dashboard, server.username));
|
||||||
*passwordStorage = QInputDialog::getText(ICore::mainWindow(),
|
*passwordStorage = QInputDialog::getText(ICore::dialogParent(),
|
||||||
Tr::tr("Axivion Server Password"), text, QLineEdit::Password, {}, &ok);
|
Tr::tr("Axivion Server Password"), text, QLineEdit::Password, {}, &ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return SetupResult::StopWithError;
|
return SetupResult::StopWithError;
|
||||||
|
Reference in New Issue
Block a user