VirtualBox

Ignore:
Timestamp:
Aug 18, 2017 10:27:03 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6669: macOS: Make sure any QIFileDialog call is using proper widget stacking (necessary for macOS sheets to avoid modal loop hang).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.cpp

    r68312 r68457  
    242242     * We want the old behavior for file-save dialog. Unfortunately there is a bug in Qt 4.5.x
    243243     * which result in showing the native & the Qt dialog at the same time. */
    244     QFileDialog dlg(aParent);
     244    QWidget *pParent = windowManager().realParentWindow(aParent);
     245    QFileDialog dlg(pParent);
     246    windowManager().registerNewParent(&dlg, pParent);
    245247    dlg.setWindowTitle(aCaption);
    246248    dlg.setDirectory(aDir);
     
    302304     * We want the old behavior for file-save dialog. Unfortunately there is a bug in Qt 4.5.x
    303305     * which result in showing the native & the Qt dialog at the same time. */
    304     QFileDialog dlg(aParent);
     306    QWidget *pParent = windowManager().realParentWindow(aParent);
     307    QFileDialog dlg(pParent);
     308    windowManager().registerNewParent(&dlg, pParent);
    305309    dlg.setWindowTitle(aCaption);
    306310
     
    408412     * We want the old behavior for file-save dialog. Unfortunately there is a bug in Qt 4.5.x
    409413     * which result in showing the native & the Qt dialog at the same time. */
    410     QFileDialog dlg(aParent);
     414    QWidget *pParent = windowManager().realParentWindow(aParent);
     415    QFileDialog dlg(pParent);
     416    windowManager().registerNewParent(&dlg, pParent);
    411417    dlg.setWindowTitle(aCaption);
    412418
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette