1
0
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:
TheNain38 2015-11-08 14:17:34 +01:00 committed by TheNain38
parent a8746e6857
commit 5ff2a4e37a
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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;