Changeset 68457 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 18, 2017 10:27:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.cpp
r68312 r68457 242 242 * We want the old behavior for file-save dialog. Unfortunately there is a bug in Qt 4.5.x 243 243 * 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); 245 247 dlg.setWindowTitle(aCaption); 246 248 dlg.setDirectory(aDir); … … 302 304 * We want the old behavior for file-save dialog. Unfortunately there is a bug in Qt 4.5.x 303 305 * 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); 305 309 dlg.setWindowTitle(aCaption); 306 310 … … 408 412 * We want the old behavior for file-save dialog. Unfortunately there is a bug in Qt 4.5.x 409 413 * 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); 411 417 dlg.setWindowTitle(aCaption); 412 418
Note:
See TracChangeset
for help on using the changeset viewer.