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);
|
||||
}
|
||||
|
||||
GroupWidget::~GroupWidget()
|
||||
{
|
||||
Translator::unregister(this);
|
||||
}
|
||||
|
||||
void GroupWidget::contextMenuEvent(QContextMenuEvent* event)
|
||||
{
|
||||
if (!active)
|
||||
|
|
|
@ -27,6 +27,7 @@ class GroupWidget final : public GenericChatroomWidget
|
|||
Q_OBJECT
|
||||
public:
|
||||
GroupWidget(int GroupId, QString Name);
|
||||
~GroupWidget();
|
||||
virtual void setAsInactiveChatroom() final override;
|
||||
virtual void setAsActiveChatroom() final override;
|
||||
virtual void updateStatusLight() final override;
|
||||
|
|
Loading…
Reference in New Issue
Block a user