VirtualBox

Changeset 61195 in vbox for trunk


Ignore:
Timestamp:
May 25, 2016 2:56:15 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​​​​​​​​​​bugref:7420: Request GUI/SuppressMessages value from the machine extra-data first, then global one after that (no combining).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r61193 r61195  
    22272227}
    22282228
    2229 QStringList UIExtraDataManager::suppressedMessages()
    2230 {
    2231     return extraDataStringList(GUI_SuppressMessages);
     2229QStringList UIExtraDataManager::suppressedMessages(const QString &strID /* = GlobalID */)
     2230{
     2231    return extraDataStringList(GUI_SuppressMessages, strID);
    22322232}
    22332233
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r60599 r61195  
    144144      * @{ */
    145145        /** Returns the list of supressed messages for the Message/Popup center frameworks. */
    146         QStringList suppressedMessages();
     146        QStringList suppressedMessages(const QString &strID = GlobalID);
    147147        /** Defines the @a list of supressed messages for the Message/Popup center frameworks. */
    148148        void setSuppressedMessages(const QStringList &list);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r61188 r61195  
    28642864
    28652865    /* Check if message-box was auto-confirmed before: */
    2866     CVirtualBox vbox;
    28672866    QStringList confirmedMessageList;
    28682867    if (!strAutoConfirmId.isEmpty())
    28692868    {
    2870         vbox = vboxGlobal().virtualBox();
    2871         confirmedMessageList = gEDataManager->suppressedMessages();
     2869        const QString strID = vboxGlobal().isVMConsoleProcess() ? vboxGlobal().managedVMUuid() : UIExtraDataManager::GlobalID;
     2870        confirmedMessageList = gEDataManager->suppressedMessages(strID);
    28722871        if (   confirmedMessageList.contains(strAutoConfirmId)
    28732872            || confirmedMessageList.contains("allMessageBoxes")
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