VirtualBox

Changeset 30031 in vbox for trunk


Ignore:
Timestamp:
Jun 4, 2010 12:09:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62370
Message:

FE/Qt4: fix initial handle position

File:
1 edited

Legend:

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

    r30022 r30031  
    518518
    519519    /* Set the initial distribution. The right site is bigger. */
     520    pSplitter->setStretchFactor(0, 2);
    520521    pSplitter->setStretchFactor(1, 3);
    521     pSplitter->setStretchFactor(0, 2);
     522
    522523
    523524    /* VM details view */
     
    673674        QString sliderPos = vbox.GetExtraData(VBoxDefs::GUI_SplitterSizes);
    674675        QStringList strSizes = sliderPos.split(",");
    675         QList<int> sizes;
    676         for (int i=0; i <  strSizes.size(); ++i)
    677             sizes << strSizes.at(i).toInt();
    678         if (!sizes.isEmpty())
     676        if (strSizes.size() == 2)
     677        {
     678            QList<int> sizes;
     679            for (int i=0; i <  strSizes.size(); ++i)
     680                sizes << strSizes.at(i).toInt();
    679681            pSplitter->setSizes(sizes);
     682        }
    680683    }
    681684
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