VirtualBox

Changeset 25041 in vbox


Ignore:
Timestamp:
Nov 27, 2009 9:26:07 AM (15 years ago)
Author:
vboxsync
Message:

allow to prevent the Beta warning by setting a global extra data string

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h

    r23223 r25041  
    179179    static const char* GUI_Export_Hostname;
    180180    static const char* GUI_Export_Bucket;
     181    static const char* GUI_PreventBetaWarning;
    181182};
    182183
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxDefs.cpp

    r21938 r25041  
    6161const char* VBoxDefs::GUI_Export_Hostname = "GUI/Export/Hostname";
    6262const char* VBoxDefs::GUI_Export_Bucket = "GUI/Export/Bucket";
     63const char* VBoxDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning";
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r24766 r25041  
    510510                QString vboxVersion (vboxGlobal().virtualBox().GetVersion());
    511511                if (vboxVersion.contains ("BETA"))
    512                     vboxProblem().showBETAWarning();
     512                {
     513                    /* Allow to prevent this message */
     514                    QString str = vboxGlobal().virtualBox().
     515                        GetExtraData (VBoxDefs::GUI_PreventBetaWarning);
     516                    if (str != vboxVersion)
     517                        vboxProblem().showBETAWarning();
     518                }
    513519# endif
    514520#endif
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