- Timestamp:
- Aug 3, 2017 10:18:39 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r68260 r68277 145 145 } 146 146 147 void UISelectorWindow::sltHandlePolishEvent() 148 { 149 // WORKAROUND: 150 // By some reason some of X11 DEs unable to update() 151 // tab-bars on startup. Let's try to _create_ them instead. 152 /* Make sure 'Details' and 'Snapshots' Machine tools ares opened at startup for now: */ 153 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Snapshots)->trigger(); 154 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Details)->trigger(); 155 } 156 147 157 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 148 158 void UISelectorWindow::sltHandleHostScreenAvailableAreaChange() … … 1262 1272 QTimer::singleShot(0, this, SLOT(sltHandleMediumEnumerationFinish())); 1263 1273 1264 // WORKAROUND: 1265 // By some reason some of X11 DEs unable to update 1266 // tab-bars on startup. Let's try to do it ourselves. 1267 m_pTabBarMachine->update(); 1268 m_pTabBarGlobal->update(); 1274 /* Call for async polishing: */ 1275 QMetaObject::invokeMethod(this, "sltHandlePolishEvent", Qt::QueuedConnection); 1269 1276 } 1270 1277 … … 1317 1324 prepareWidgets(); 1318 1325 prepareConnections(); 1319 1320 /* Make sure 'Details' and 'Snapshots' Machine tools ares opened at startup for now: */1321 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Snapshots)->trigger();1322 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Details)->trigger();1323 1326 1324 1327 /* Load settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r68230 r68277 75 75 76 76 private slots: 77 78 /** Handles polishing in the async way. */ 79 void sltHandlePolishEvent(); 77 80 78 81 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
Note:
See TracChangeset
for help on using the changeset viewer.