From 48a8c9ff797c0ba83615182637c4b45912b66349 Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Wed, 6 Oct 2010 01:04:35 +0000 Subject: [PATCH] added eval warning dialog refs #1727 --- build_num | 2 +- src/gui/FWWindow.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build_num b/build_num index 2487b9112..4a2e6cc4a 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 3327 +#define BUILD_NUM 3328 diff --git a/src/gui/FWWindow.cpp b/src/gui/FWWindow.cpp index 381caa2c3..0079c0c77 100644 --- a/src/gui/FWWindow.cpp +++ b/src/gui/FWWindow.cpp @@ -165,6 +165,8 @@ #include +extern void regCheck(); + using namespace libfwbuilder; using namespace std; using namespace Ui; @@ -583,7 +585,7 @@ void FWWindow::showIntroDialog() msg_box.addButton(&cb, QMessageBox::ResetRole); // is this role right ? QPushButton *watch_button = msg_box.addButton(tr("Watch the guide"), QMessageBox::AcceptRole); - QPushButton *close_button = msg_box.addButton(QMessageBox::Close); + msg_box.addButton(QMessageBox::Close); msg_box.setDefaultButton(watch_button); msg_box.exec(); @@ -604,6 +606,10 @@ void FWWindow::showIntroDialog() return; } +#ifdef ELC + if (regCheck()) return; +#endif + if (!st->getBool("UI/NoStartTip")) { StartTipDialog *stdlg = new StartTipDialog(this);