added missing removal of event handler in jsonapi and webui settings

This commit is contained in:
csoler 2023-09-23 17:31:24 +02:00
parent 034bddf1ef
commit 41069a0fa5
3 changed files with 6 additions and 2 deletions

View file

@ -72,6 +72,10 @@ JsonApiPage::JsonApiPage(QWidget */*parent*/, Qt::WindowFlags /*flags*/)
mEventHandlerId, RsEventType::JSON_API ); mEventHandlerId, RsEventType::JSON_API );
} }
JsonApiPage::~JsonApiPage()
{
rsEvents->unregisterEventsHandler(mEventHandlerId);
}
QString JsonApiPage::helpText() const QString JsonApiPage::helpText() const
{ {
return tr("<h1><img width=\"24\" src=\":/icons/help_64.png\">&nbsp;&nbsp;Webinterface</h1> \ return tr("<h1><img width=\"24\" src=\":/icons/help_64.png\">&nbsp;&nbsp;Webinterface</h1> \

View file

@ -33,7 +33,7 @@ class JsonApiPage : public ConfigPage
public: public:
JsonApiPage(QWidget * parent = nullptr, Qt::WindowFlags flags = 0); JsonApiPage(QWidget * parent = nullptr, Qt::WindowFlags flags = 0);
~JsonApiPage() override = default; ~JsonApiPage() override ;
virtual QPixmap iconPixmap() const override virtual QPixmap iconPixmap() const override
{ {

View file

@ -66,7 +66,7 @@ WebuiPage::WebuiPage(QWidget */*parent*/, Qt::WindowFlags /*flags*/)
WebuiPage::~WebuiPage() WebuiPage::~WebuiPage()
{ {
rsEvents->unregisterEventsHandler(mEventsHandlerId);
} }
void WebuiPage::selectWebInterfaceDirectory() void WebuiPage::selectWebInterfaceDirectory()