VirtualBox

Changeset 46325 in vbox for trunk/src


Ignore:
Timestamp:
May 30, 2013 12:05:29 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86096
Message:

FE/Qt: MacOS X host workaround: Using application-modality for 'add shared folder' dialog to prevent Qt bug with some strange empty modal-dialog appearing which blocks further UI interactions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r45424 r46325  
    427427    /* Invoke Add-Box Dialog */
    428428    UIMachineSettingsSFDetails dlg (UIMachineSettingsSFDetails::AddType, isSharedFolderTypeSupported(ConsoleType), usedList (true), this);
     429#ifdef Q_WS_MAC
     430    /* !!! WORKAROUND !!!
     431     * Actually this one dialog should be a window-modal 'Mac Sheet' (not an application-modal 'Window')
     432     * but in that one case we have a strange Qt bug under MacOS X host.
     433     * Its probably linked somehow with using Mac Sheets and leads to appearing of some strange
     434     * empty modal-window (after closing this dialog) which prevents further applicaiton interactions. */
     435    if (dlg.exec(true /* show-instantly */, true /* application-modal */) == QDialog::Accepted)
     436#else /* Q_WS_MAC */
    429437    if (dlg.exec() == QDialog::Accepted)
     438#endif /* !Q_WS_MAC */
    430439    {
    431440        QString name = dlg.name();
Note: See TracChangeset for help on using the changeset viewer.

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