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 );
}
JsonApiPage::~JsonApiPage()
{
rsEvents->unregisterEventsHandler(mEventHandlerId);
}
QString JsonApiPage::helpText() const
{
return tr("<h1><img width=\"24\" src=\":/icons/help_64.png\">&nbsp;&nbsp;Webinterface</h1> \