mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix groupwidget not unregistered from Translator
This commit is contained in:
parent
a8746e6857
commit
5ff2a4e37a
|
@ -60,6 +60,11 @@ GroupWidget::GroupWidget(int GroupId, QString Name)
|
||||||
Translator::registerHandler(std::bind(&GroupWidget::retranslateUi, this), this);
|
Translator::registerHandler(std::bind(&GroupWidget::retranslateUi, this), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GroupWidget::~GroupWidget()
|
||||||
|
{
|
||||||
|
Translator::unregister(this);
|
||||||
|
}
|
||||||
|
|
||||||
void GroupWidget::contextMenuEvent(QContextMenuEvent* event)
|
void GroupWidget::contextMenuEvent(QContextMenuEvent* event)
|
||||||
{
|
{
|
||||||
if (!active)
|
if (!active)
|
||||||
|
|
|
@ -27,6 +27,7 @@ class GroupWidget final : public GenericChatroomWidget
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GroupWidget(int GroupId, QString Name);
|
GroupWidget(int GroupId, QString Name);
|
||||||
|
~GroupWidget();
|
||||||
virtual void setAsInactiveChatroom() final override;
|
virtual void setAsInactiveChatroom() final override;
|
||||||
virtual void setAsActiveChatroom() final override;
|
virtual void setAsActiveChatroom() final override;
|
||||||
virtual void updateStatusLight() final override;
|
virtual void updateStatusLight() final override;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user