VirtualBox

Changeset 56954 in vbox for trunk


Ignore:
Timestamp:
Jul 16, 2015 2:31:31 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: 7676: Encryption support: User-oriented improvement: Focus password table again if password validation failed.

File:
1 edited

Legend:

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

    r56953 r56954  
    204204        case Qt::Key_Return:
    205205            emit sigEnterKeyTriggered();
     206            pEvent->accept();
    206207            break;
    207208        default:
     
    457458        const QString strPassword = m_pTableEncryptionData->encryptionPasswords().value(strPasswordId);
    458459        if (!isPasswordValid(strMediumId, strPassword))
    459             return msgCenter().warnAboutInvalidEncryptionPassword(strPasswordId, this);
     460        {
     461            msgCenter().warnAboutInvalidEncryptionPassword(strPasswordId, this);
     462            AssertPtrReturnVoid(m_pTableEncryptionData);
     463            m_pTableEncryptionData->setFocus();
     464            m_pTableEncryptionData->editFirstIndex();
     465            return;
     466        }
    460467    }
    461468    /* Call to base-class: */
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