Changeset 65552 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 31, 2017 4:38:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r65551 r65552 30 30 # include <QStateMachine> 31 31 # include <QPainter> 32 # ifdef VBOX_WS_WIN 33 # include <QWindow> 34 # endif /* VBOX_WS_WIN */ 32 # include <QWindow> 35 33 # ifdef VBOX_WS_X11 36 34 # include <QWindowStateChangeEvent> … … 590 588 LogRel2(("GUI: UIMiniToolBar::sltShow\n")); 591 589 590 /* Update transience: */ 591 sltAdjustTransience(); 592 592 593 #if defined(VBOX_WS_MAC) 593 594 … … 775 776 776 777 #endif 778 } 779 780 void UIMiniToolBar::sltAdjustTransience() 781 { 782 // WORKAROUND: 783 // Make sure win id is generated, 784 // else Qt5 can crash otherwise. 785 winId(); 786 m_pParent->winId(); 787 788 /* Add the transience dependency: */ 789 windowHandle()->setTransientParent(m_pParent->windowHandle()); 777 790 } 778 791
Note:
See TracChangeset
for help on using the changeset viewer.