VirtualBox

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


Ignore:
Timestamp:
Oct 18, 2018 9:38:43 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9230: A fixes for Cloud Profile Manager details widget: Forgot to check for button-box presence.

File:
1 edited

Legend:

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

    r74898 r74910  
    6464
    6565    /* Translate button-box: */
    66     m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset"));
    67     m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply"));
    68     m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
    69     m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return"));
    70     m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current profile details"));
    71     m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current profile details"));
    72     m_pButtonBox->button(QDialogButtonBox::Cancel)->
    73         setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
    74     m_pButtonBox->button(QDialogButtonBox::Ok)->
    75         setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
     66    if (m_pButtonBox)
     67    {
     68        m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset"));
     69        m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply"));
     70        m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
     71        m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return"));
     72        m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current profile details"));
     73        m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current profile details"));
     74        m_pButtonBox->button(QDialogButtonBox::Cancel)->
     75            setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
     76        m_pButtonBox->button(QDialogButtonBox::Ok)->
     77            setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
     78    }
    7679
    7780    /* Retranslate validation: */
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