VirtualBox

Changeset 10166

Show
Ignore:
Timestamp:
07/03/08 18:16:45 (5 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

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

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy