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:
parent
6d0ae67c9d
commit
e57693fa8f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user