VirtualBox

Changeset 10221

Show
Ignore:
Timestamp:
07/04/08 14:30:30 (5 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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(); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy