VirtualBox

Changeset 81507 in vbox for trunk


Ignore:
Timestamp:
Oct 24, 2019 6:07:39 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134235
Message:

FE/Qt: bugref:6699. Small fixes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r81447 r81507  
    24082408}
    24092409
    2410 bool UIMessageCenter::confirmSoftKeyboardClose(const QStringList &strNameList) const
    2411 {
    2412     QString strJoinedString = strNameList.join("<br/>");
    2413     return questionBinary(0, MessageType_Warning,
    2414                           tr("<p>Following layouts are edited/copied but not saved:</p>%1"
    2415                              "<p>Closing this dialog will cause loosing the changes. Proceed?</p>").arg(strJoinedString),
    2416                           0 /* auto-confirm id */,
    2417                           "Ok", "Cancel");
    2418 }
    2419 
    24202410#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    24212411bool UIMessageCenter::confirmCancelingAllNetworkRequests() const
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r81447 r81507  
    446446    void cannotSwitchScreenInSeamless(quint64 uMinVRAM) const;
    447447    void cannotAddDiskEncryptionPassword(const CConsole &console);
    448     bool confirmSoftKeyboardClose(const QStringList &strNameList) const;
    449448
    450449#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r81478 r81507  
    26042604        return;
    26052605
    2606     m_layouts.remove(m_uCurrentLayoutId);
    2607     setCurrentLayout(m_layouts.firstKey());
    2608 
    26092606    QDir fileToDelete;
    26102607    QString strFilePath(layout.sourceFilePath());
     
    26292626            sigStatusBarMessage(QString("%1 %2 %3").arg(UISoftKeyboard::tr("Deleting the file ")).arg(strFilePath).arg(UISoftKeyboard::tr(" has failed")));
    26302627    }
     2628
     2629    m_layouts.remove(m_uCurrentLayoutId);
     2630    setCurrentLayout(m_layouts.firstKey());
    26312631}
    26322632
     
    37733773    if (m_pKeyboardWidget && !strNameList.empty())
    37743774    {
    3775         if (msgCenter().confirmSoftKeyboardClose(strNameList))
     3775        QString strJoinedString = strNameList.join("<br/>");
     3776        if (msgCenter().questionBinary(this, MessageType_Warning,
     3777                                       tr("<p>Following layouts are edited/copied but not saved:</p>%1"
     3778                                          "<p>Closing this dialog will cause loosing the changes. Proceed?</p>").arg(strJoinedString),
     3779                                       0 /* auto-confirm id */,
     3780                                       "Ok", "Cancel"))
    37763781            QMainWindowWithRestorableGeometryAndRetranslateUi::closeEvent(event);
    37773782        else
     
    39433948    updateLayoutSelectorList();
    39443949    if (m_pKeyboardWidget && m_pKeyboardWidget->currentLayout() && m_pLayoutSelector)
     3950    {
    39453951        m_pLayoutSelector->setCurrentLayout(m_pKeyboardWidget->currentLayout()->uid());
     3952        m_pLayoutSelector->setCurrentLayoutIsEditable(m_pKeyboardWidget->currentLayout()->editable());
     3953    }
    39463954}
    39473955
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette