VirtualBox

Changeset 30014 in vbox


Ignore:
Timestamp:
Jun 3, 2010 2:51:57 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62336
Message:

FE/Qt: finally prevent a Window resize event during normal startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r29734 r30014  
    541541        if (ok /* if previous parameters were read correctly */)
    542542        {
    543             m_normalGeometry = QRect(x, y, w, h);
    544             setGeometry(m_normalGeometry);
     543            if (machine.GetState() == KMachineState_Saved)
     544            {
     545                /* restore from a saved state: restore window size and position */
     546                m_normalGeometry = QRect(x, y, w, h);
     547                setGeometry(m_normalGeometry);
     548            }
     549            else
     550            {
     551                /* not restored from a saved state: restore only the last position */
     552                move(x, y);
     553                if (machineView())
     554                    machineView()->normalizeGeometry(false /* adjust position? */);
     555
     556            }
    545557
    546558            /* Maximize if needed: */
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