VirtualBox

Changeset 8724 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 8, 2008 5:36:40 PM (17 years ago)
Author:
vboxsync
Message:

Little fix for ensuring language item visible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui.h

    r8723 r8724  
    560560    VBoxGlobal::centerWidget (this, parentWidget());
    561561
    562     lvLanguages->ensureVisible (0, lvLanguages->itemPos (lvLanguages->currentItem()),
    563                                 0, 0);
     562    /* ensures selected language item visible */
     563    QListViewItem *item = lvLanguages->currentItem();
     564    if (item)
     565        lvLanguages->ensureVisible (0, lvLanguages->itemPos (item), 0, 0);
    564566}
    565567
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