VirtualBox

Changeset 100816 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 7, 2023 10:47:49 AM (17 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10496, bugref:9080. Update settings widget when save as action is used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r100813 r100816  
    7676    UIVisoSettingWidget(QWidget *pParent);
    7777    virtual void retranslateUi();
     78    void setVisoName(const QString &strName);
    7879    void setSettings(const UIVisoCreatorWidget::Settings &settings);
    7980    UIVisoCreatorWidget::Settings settings() const;
     
    200201    if (m_pShowHiddenObjectsCheckBox)
    201202        connect(m_pShowHiddenObjectsCheckBox, &QCheckBox::toggled, this, &UIVisoSettingWidget::sigSettingsChanged);
     203}
     204
     205void UIVisoSettingWidget::setVisoName(const QString &strName)
     206{
     207    if (m_pVisoNameLineEdit)
     208        m_pVisoNameLineEdit->setText(strName);
    202209}
    203210
     
    285292    m_settings.m_strVisoName = strName;
    286293    emit sigVisoNameChanged(m_settings.m_strVisoName);
     294    if (m_pSettingsWidget)
     295    {
     296        m_pSettingsWidget->blockSignals(true);
     297        m_pSettingsWidget->setVisoName(strName);
     298        m_pSettingsWidget->blockSignals(false);
     299    }
    287300}
    288301
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