mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 06:31:20 -04:00
added missing removal of event handler in jsonapi and webui settings
This commit is contained in:
parent
034bddf1ef
commit
41069a0fa5
3 changed files with 6 additions and 2 deletions
|
@ -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\"> Webinterface</h1> \
|
return tr("<h1><img width=\"24\" src=\":/icons/help_64.png\"> Webinterface</h1> \
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -66,7 +66,7 @@ WebuiPage::WebuiPage(QWidget */*parent*/, Qt::WindowFlags /*flags*/)
|
||||||
|
|
||||||
WebuiPage::~WebuiPage()
|
WebuiPage::~WebuiPage()
|
||||||
{
|
{
|
||||||
|
rsEvents->unregisterEventsHandler(mEventsHandlerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebuiPage::selectWebInterfaceDirectory()
|
void WebuiPage::selectWebInterfaceDirectory()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue