VirtualBox

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


Ignore:
Timestamp:
May 6, 2014 2:19:30 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: 6660: Advanced extra-data management framework: Integrate GUI_PreventBetaWarning.

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

Legend:

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

    r51189 r51195  
    153153}
    154154
     155QString UIExtraDataManager::preventBETAwarningForVersion() const
     156{
     157    return extraDataString(GUI_PreventBetaWarning);
     158}
     159
    155160#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    156161bool UIExtraDataManager::shouldWeAllowApplicationUpdate() const
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r51187 r51195  
    7272    /** Static Extra-data Manager destructor. */
    7373    static void destroy();
     74
     75    /** Returns version for which user wants to prevent BETA warning. */
     76    QString preventBETAwarningForVersion() const;
    7477
    7578#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r51010 r51195  
    2929#include "VBoxUtils.h"
    3030#include "UIModalWindowManager.h"
     31#include "UIExtraDataManager.h"
    3132#ifdef Q_WS_MAC
    3233# include "UICocoaApplication.h"
     
    531532                {
    532533                    /* Allow to prevent this message: */
    533                     QString str = vboxGlobal().virtualBox().GetExtraData(GUI_PreventBetaWarning);
    534                     if (str != vboxVersion)
     534                    if (gEDataManager->preventBETAwarningForVersion() != vboxVersion)
    535535                        msgCenter().showBETAWarning();
    536536                }
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