diff --git a/build_num b/build_num index 617d206ea..7e8adec89 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 775 +#define BUILD_NUM 776 diff --git a/src/gui/FWBAboutDialog.h b/src/gui/FWBAboutDialog.h index 6068daf23..2b65ee0b4 100644 --- a/src/gui/FWBAboutDialog.h +++ b/src/gui/FWBAboutDialog.h @@ -32,8 +32,18 @@ public: libfwbuilder::Constants::getLibraryVersion().c_str() ) ); #ifdef ELC - if (registered) m_aboutDialog->reg->setText(tr("Registered")); - else m_aboutDialog->reg->setText(tr("Unregistered")); + switch (registered) + { + case 1: + m_aboutDialog->reg->setText(tr("Invalid license")); + break; + case 2: + m_aboutDialog->reg->setText(tr("Registered")); + break; + default: + m_aboutDialog->reg->setText(tr("Unregistered")); + break; + } #endif setWindowTitle(QString("Firewall Builder: About...")); diff --git a/src/gui/global.h b/src/gui/global.h index d869455a4..750623f17 100644 --- a/src/gui/global.h +++ b/src/gui/global.h @@ -48,7 +48,7 @@ extern std::string tempfname; extern std::string argv0; extern std::string ee; extern int fwbdebug; -extern bool registered; +extern int registered; extern bool gui_experiment1; #define SETTINGS_PATH_PREFIX "/3.0" diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 89dc10d24..81dfba667 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -114,11 +114,11 @@ #include "../common/init.cpp" #ifdef ELC -extern bool init2(const std::string &a1, - const std::string &moduleName, - const std::string &rp, - const std::string &rp1, - bool f1, bool f2, bool d); +extern int init2(const std::string &a1, + const std::string &moduleName, + const std::string &rp, + const std::string &rp1, + bool f1, bool f2, bool d); #endif #if defined(Q_WS_MAC) @@ -137,7 +137,7 @@ FWWindow *mw = NULL; FWBSettings *st = NULL; int fwbdebug = 0; bool safemode = false; -bool registered = false; +int registered = 0; bool gui_experiment1 = false; bool cli_print = false; QString cli_print_fwname = "";