From e57693fa8f2d8b806282ed519984ad36637b9cf0 Mon Sep 17 00:00:00 2001 From: jenli669 Date: Fri, 28 Jun 2019 22:23:13 +0200 Subject: [PATCH] refactor(widget): stop using getInstance in Widget --- src/widget/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index e10886248..a5a095be9 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -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 {