Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
1.0.0
-
None
Description
QNetworkSession::waitForOpened(-1) opens a non modal dialog, allowing the user to interact with the other UI widgets. Widgets appear disabled (dimmed) when the IAP dialog is displayed but are not disabled.
The IAP dialog should be modal.
Consider the following code being executed inside a custom QT dialog...
QNetworkSession* networkSession = new QNetworkSession(cfg, this);
networkSession->open();
networkSession->waitForOpened(-1);
// The IAP dialog is shown. However the user can interact with the widgets drawn behind the IAP dialog.
// At this point the user the user closes the custom QT dialog
int networkID = cfg.identifier().toUInt();
doSomethingWithNetworkID(networkID);
// The above two lines of code are never executed and networkSession is never destroyed after the user closes the containing custom QT dialog.