1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(widget): stop using getInstance in Widget

This commit is contained in:
jenli669 2019-06-28 22:23:13 +02:00
parent 6d0ae67c9d
commit e57693fa8f
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -2158,7 +2158,7 @@ void Widget::onEmptyGroupCreated(uint32_t groupnumber, const GroupId& groupId, c
}
if (title.isEmpty()) {
// Only rename group if groups are visible.
if (Widget::getInstance()->groupsVisible()) {
if (groupsVisible()) {
groupWidgets[groupId]->editName();
}
} else {