mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 12:17:26 +01:00
fixes #839
This commit is contained in:
parent
642f6afdbb
commit
8be3fa29ea
@ -117,7 +117,7 @@ const char* targetStatus = SETTINGS_PATH_PREFIX "/TargetStatus/";
|
||||
* in the Windows installer/uninstaller scripts.
|
||||
*/
|
||||
FWBSettings::FWBSettings() :
|
||||
QSettings(QSettings::UserScope, "netcitadel.com", "Firewall Builder 3.1")
|
||||
QSettings(QSettings::UserScope, "netcitadel.com", getApplicationNameForSettings())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@ -60,6 +60,8 @@ class FWBSettings : public QSettings {
|
||||
|
||||
FWBSettings();
|
||||
|
||||
static QString getApplicationNameForSettings() { return "FirewallBuilder3.1"; }
|
||||
|
||||
void init();
|
||||
void save();
|
||||
|
||||
|
||||
@ -36,6 +36,8 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
extern int getRegistrationStatus();
|
||||
|
||||
HttpGet::HttpGet(QObject *parent) : QObject(parent), strm(&contents)
|
||||
{
|
||||
last_error = "";
|
||||
@ -106,8 +108,8 @@ bool HttpGet::get(const QUrl &url)
|
||||
agent += locale;
|
||||
agent += QString("; b:%1; ").arg(build_num);
|
||||
#ifdef ELC
|
||||
if (registered==2) agent += "r";
|
||||
else agent += "u";
|
||||
if (getRegistrationStatus()==2) agent += "r";
|
||||
else agent += "u";
|
||||
#else
|
||||
agent += "u";
|
||||
#endif
|
||||
|
||||
@ -50,7 +50,6 @@ extern std::string tempfname;
|
||||
extern std::string argv0;
|
||||
extern std::string ee;
|
||||
extern int fwbdebug;
|
||||
extern int registered;
|
||||
extern QString build_num;
|
||||
extern QString user_name;
|
||||
|
||||
|
||||
@ -112,10 +112,11 @@
|
||||
#include "../common/init.cpp"
|
||||
|
||||
#ifdef ELC
|
||||
extern int init2(const std::string &a1,
|
||||
const std::string &moduleName,
|
||||
const std::string &rp,
|
||||
const std::string &rp1,
|
||||
extern int init2(const QString &a1,
|
||||
const QString &moduleName,
|
||||
const QString &rp1,
|
||||
const QString &rp2,
|
||||
const QString &rp3,
|
||||
bool f1, bool f2, bool d);
|
||||
#endif
|
||||
|
||||
@ -135,7 +136,6 @@ FWWindow *mw = NULL;
|
||||
FWBSettings *st = NULL;
|
||||
int fwbdebug = 0;
|
||||
bool safemode = false;
|
||||
int registered = 0;
|
||||
bool cli_print = false;
|
||||
QString cli_print_fwname = "";
|
||||
|
||||
@ -610,11 +610,12 @@ int main( int argc, char *argv[] )
|
||||
// app->setFont(st->getTreeFont());
|
||||
|
||||
#ifdef ELC
|
||||
registered = init2(argv0,
|
||||
"Firewall Builder",
|
||||
"fwb_gui30",
|
||||
"3.1",
|
||||
true, true, fwbdebug);
|
||||
init2(argv0.c_str(),
|
||||
"Firewall Builder",
|
||||
"fwb_gui30",
|
||||
FWBSettings::getApplicationNameForSettings(),
|
||||
"3.1",
|
||||
true, true, fwbdebug);
|
||||
#endif
|
||||
|
||||
string full_res_path = respath + FS_SEPARATOR + "resources.xml";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user