VirtualBox

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


Ignore:
Timestamp:
May 21, 2012 1:57:04 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: File-path selector widget: Fixing button text set bug.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxFilePathSelectorWidget.cpp

    r41021 r41370  
    566566    , mMode (VBoxFilePathSelectorWidget::Mode_File_Open)
    567567    , mLineEdit (NULL)
     568    , m_fButtonTextSet(false)
    568569    , mHomeDir (QDir::current().absolutePath())
    569570    , mIsModified (false)
     
    681682{
    682683    mSelectButton->setText(strText);
     684    m_fButtonTextSet = !strText.isEmpty();
    683685}
    684686
     
    720722void VBoxEmptyFileSelector::retranslateUi()
    721723{
    722     mSelectButton->setText (tr ("&Choose..."));
     724    if (!m_fButtonTextSet)
     725        mSelectButton->setText(tr("&Choose..."));
    723726}
    724727
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxFilePathSelectorWidget.h

    r41021 r41370  
    195195    QILineEdit *mLineEdit;
    196196    QPushButton *mSelectButton;
     197    bool m_fButtonTextSet;
    197198    QString mFileDialogTitle;
    198199    QString mFileFilters;
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