VirtualBox

Changeset 24080 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 26, 2009 2:42:01 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53956
Message:

FE/Qt4: VBox Console WND: Fixed regression provoking dvd-led to be not grayed-out when there are no any dvd mediums attached.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r23997 r24080  
    26682668                    .arg (vboxGlobal().toString (StorageSlot (controller.GetBus(), attachment.GetPort(), attachment.GetDevice())))
    26692669                    .arg (vboxMedium.isNull() || vboxMedium.isHostDrive() ? vboxMedium.name() : vboxMedium.location());
    2670                 attachmentsPresent = true;
     2670                if (!vboxMedium.isNull())
     2671                    attachmentsPresent = true;
    26712672            }
    26722673            if (!attData.isNull())
     
    26742675        }
    26752676
    2676         if (!attachmentsPresent)
    2677             data += tr ("<br><nobr><b>No CD/DVD devices attached</b></nobr>", "CD/DVD tooltip");
     2677        if (data.isNull())
     2678            data = tr ("<br><nobr><b>No CD/DVD devices attached</b></nobr>", "CD/DVD tooltip");
    26782679
    26792680        mCDLed->setToolTip (tip.arg (data));
     
    27022703                    .arg (vboxGlobal().toString (StorageSlot (controller.GetBus(), attachment.GetPort(), attachment.GetDevice())))
    27032704                    .arg (vboxMedium.isNull() || vboxMedium.isHostDrive() ? vboxMedium.name() : vboxMedium.location());
    2704                 attachmentsPresent = true;
     2705                if (!vboxMedium.isNull())
     2706                    attachmentsPresent = true;
    27052707            }
    27062708            if (!attData.isNull())
     
    27082710        }
    27092711
    2710         if (!attachmentsPresent)
    2711             data += tr ("<br><nobr><b>No floppy devices attached</b></nobr>", "FD tooltip");
     2712        if (data.isNull())
     2713            data = tr ("<br><nobr><b>No floppy devices attached</b></nobr>", "FD tooltip");
    27122714
    27132715        mFDLed->setToolTip (tip.arg (data));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette