Changeset 19087 in vbox
- Timestamp:
- Apr 21, 2009 4:29:50 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46230
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFilePathSelectorWidget.cpp
r19080 r19087 380 380 void VBoxFilePathSelectorWidget::selectPath() 381 381 { 382 /* Clear the focus early to prevent race condition between our and383 * Qt internal focus out events when opening native modal dialog */384 clearFocus();385 386 382 /* Preparing initial directory. */ 387 383 QString initDir = mPath.isNull() ? mHomeDir : -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r18905 r19087 4047 4047 bi.lParam = Q_ULONG (&mDir); 4048 4048 4049 /* Qt is uncapable to properly handle modal state if the modal4050 * window is not a QWidget. For example, if we have the W1->W2->N4051 * ownership where Wx are QWidgets (W2 is modal), and N is a4052 * native modal window, cliking on the title bar of W1 will still4053 * activate W2 and redirect keyboard/mouse to it. The dirty hack4054 * to prevent it is to disable the entire widget... */4055 if (mParent)4056 mParent->setEnabled (false);4057 4058 4049 LPITEMIDLIST itemIdList = SHBrowseForFolder (&bi); 4059 4050 if (itemIdList) … … 4073 4064 result = QString::null; 4074 4065 QApplication::postEvent (mTarget, new GetExistDirectoryEvent (result)); 4075 4076 /* Enable the parent widget again. */4077 if (mParent)4078 mParent->setEnabled (true);4079 4066 } 4080 4067
Note:
See TracChangeset
for help on using the changeset viewer.