VirtualBox

Ignore:
Timestamp:
Jul 4, 2008 12:30:30 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Fix a bug where the toolbar buttons have a wrong enabled status if the vdm is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDiskImageManagerDlg.cpp

    r10090 r10221  
    14971497    DiskImageItem *item = toDiskImageItem (aItem);
    14981498
    1499     if (!item)
     1499    if (!item && aPrevItem)
    15001500    {
    15011501        DiskImageItem *itemOld = toDiskImageItem (aPrevItem);
     
    15031503         * item is 0, set the old item again. */
    15041504        setCurrentItem (currentTreeWidget(), itemOld);
    1505         return;
    1506     }
    1507 
    1508     /* Set the file for the proxy icon */
    1509     setFileForProxyIcon (item->path());
    1510 
    1511     /* Ensures current item visible every time we are switching page */
    1512     item->treeWidget()->scrollToItem (item, QAbstractItemView::EnsureVisible);
     1505    }
     1506
     1507    if (item)
     1508    {
     1509        /* Set the file for the proxy icon */
     1510        setFileForProxyIcon (item->path());
     1511        /* Ensures current item visible every time we are switching page */
     1512        item->treeWidget()->scrollToItem (item, QAbstractItemView::EnsureVisible);
     1513    }
    15131514
    15141515    bool notInEnum      = !vboxGlobal().isMediaEnumerationStarted();
Note: See TracChangeset for help on using the changeset viewer.

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