Changeset 71102 in vbox for trunk/src/VBox
- Timestamp:
- Feb 22, 2018 1:49:45 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120967
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r70934 r71102 421 421 { 422 422 /* First, we should check whether the screen is valid: */ 423 QScreen *pScreen = iHostScreenIndex == -1 424 ? QGuiApplication::primaryScreen() 425 : QGuiApplication::screens().value(iHostScreenIndex); 423 QScreen *pScreen = 0; 424 if (iHostScreenIndex == -1) 425 { 426 pScreen = QGuiApplication::primaryScreen(); 427 iHostScreenIndex = QGuiApplication::screens().indexOf(pScreen); 428 } 429 else 430 pScreen = QGuiApplication::screens().value(iHostScreenIndex); 426 431 AssertPtrReturn(pScreen, 1.0); 427 432
Note:
See TracChangeset
for help on using the changeset viewer.