VirtualBox

Ignore:
Timestamp:
Mar 1, 2022 12:04:39 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: Use QStringList::contains + push_back instead of QStringList::toSet + QSet::toList, since toSet is gone in qt6. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationModel.cpp

    r93115 r94037  
    106106    if (fDismiss && !pSender->internalName().isEmpty())
    107107    {
    108         QSet<QString> suppressedMessages = gEDataManager->suppressedMessages().toSet();
    109         suppressedMessages << pSender->internalName();
    110         gEDataManager->setSuppressedMessages(suppressedMessages.toList());
     108        QStringList suppressedMessages = gEDataManager->suppressedMessages();
     109        if (!suppressedMessages.contains(pSender->internalName()))
     110        {
     111            suppressedMessages.push_back(pSender->internalName());
     112            gEDataManager->setSuppressedMessages(suppressedMessages);
     113        }
    111114    }
    112115
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