Commit ad13983a by Carwyn

1. 在析构中调用停止服务接口;

parent 770b2d40
......@@ -16,6 +16,16 @@ FMPSettings::FMPSettings(ctkPluginContext *context)
StartService();
}
FMPSettings::~FMPSettings()
{
StopService();
if (d_ptr) {
delete d_ptr;
d_ptr = nullptr;
}
}
void FMPSettings::InitService()
{
d_func()->Init();
......
......@@ -18,6 +18,7 @@ class FMPSettings : public QObject, public FMPSettingsInterface
public:
explicit FMPSettings(ctkPluginContext *context);
virtual ~FMPSettings();
protected:
//! BaseInterface
......
......@@ -30,4 +30,6 @@
#define FMP_APPNAME "非码POS"
#define FMP_INIKEY_PRINTER "Printer/printname"
#endif // FMP_SETTINGS_DEF_H
......@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 3
#define VER_BUILD 5
//! Convert version numbers to string
#define _STR(S) #S
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment