From df62463e27f3ccf6cf9b1bf75008af27e41833ef Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sat, 13 Apr 2019 14:16:39 -0700 Subject: [PATCH] fix(widget): fix freeze on showMainGui Don't use copied uninitialized shadowing Core* in Widget --- src/widget/widget.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 44f3e2649..c44211554 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1850,8 +1850,6 @@ Group* Widget::createGroup(int groupId, const GroupId& groupPersistentId) } const auto groupName = tr("Groupchat #%1").arg(groupId); - Core* core = core; - bool enabled = core->getGroupAvEnabled(groupId); Group* newgroup = GroupList::addGroup(groupId, groupPersistentId, groupName, enabled, core->getUsername()); std::shared_ptr chatroom(new GroupChatroom(newgroup)); @@ -2412,7 +2410,6 @@ void Widget::setActiveToolMenuButton(ActiveToolMenuButton newActiveButton) void Widget::retranslateUi() { - Core* core = core; ui->retranslateUi(this); setUsername(core->getUsername()); setStatusMessage(core->getStatusMessage());