VirtualBox

Changeset 37992 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 18, 2011 9:39:03 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: 5778: CD/DVD image selection dialog issues: Workaround for WinAPI bug (focus-out event doesn't come to machine-view on opening native modal file-open dialog).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r37109 r37992  
    12111211                usedImages << medium.GetId();
    12121212        }
     1213        /* To that moment application focus already returned to machine-view,
     1214         * so the keyboard already captured too.
     1215         * We should clear application focus from machine-view now
     1216         * to let file-open dialog get it. That way the keyboard will be released too: */
     1217        if (QApplication::focusWidget())
     1218            QApplication::focusWidget()->clearFocus();
    12131219        /* Call for file-open window: */
    12141220        QString strMachineFolder(QFileInfo(machine.GetSettingsFilePath()).absolutePath());
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