VirtualBox

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


Ignore:
Timestamp:
Jul 3, 2008 4:16:45 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32705
Message:

FE/Qt4: Set the focus to the initial selected radio button.

File:
1 edited

Legend:

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

    r10146 r10166  
    12471247                AssertWrapperOk (cmachine);
    12481248                if (lastAction [0] == kPowerOff)
     1249                {
    12491250                    dlg.mRbPowerOff->setChecked (true);
     1251                    dlg.mRbPowerOff->setFocus();
     1252                }
    12501253                else if (lastAction [0] == kShutdown)
     1254                {
    12511255                    dlg.mRbShutdown->setChecked (true);
     1256                    dlg.mRbShutdown->setFocus();
     1257                }
    12521258                else if (lastAction [0] == kSave)
     1259                {
    12531260                    dlg.mRbSave->setChecked (true);
     1261                    dlg.mRbSave->setFocus();
     1262                }
    12541263                else /* the default is ACPI Shutdown */
     1264                {
    12551265                    dlg.mRbShutdown->setChecked (true);
     1266                    dlg.mRbShutdown->setFocus();
     1267                }
    12561268                dlg.mCbDiscardCurState->setChecked (
    12571269                    lastAction.count() > 1 && lastAction [1] == kDiscardCurState);
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