Changeset 98944 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 13, 2023 4:59:44 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98940 r98944 281 281 void UISession::acquireMachinePixmap(const QSize &size, QPixmap &pixmap) 282 282 { 283 QPixmap machinePixmap = generalIconPool().userMachinePixmap(machine(), size); 283 QPixmap machinePixmap; 284 if (machine().isNotNull()) 285 machinePixmap = generalIconPool().userMachinePixmap(machine(), size); 284 286 if (machinePixmap.isNull()) 285 287 machinePixmap = generalIconPool().guestOSTypePixmap(osTypeId(), size); … … 290 292 void UISession::acquireUserMachineIcon(QIcon &icon) 291 293 { 292 QIcon machineIcon = generalIconPool().userMachineIcon(machine()); 294 QIcon machineIcon; 295 if (machine().isNotNull()) 296 machineIcon = generalIconPool().userMachineIcon(machine()); 293 297 if (machineIcon.isNull()) 294 298 machineIcon = generalIconPool().guestOSTypeIcon(osTypeId());
Note:
See TracChangeset
for help on using the changeset viewer.