Browse Source

fix(widget): fix freeze on showMainGui

Don't use copied uninitialized shadowing Core* in Widget
reviewable/pr5616/r1
Anthony Bilinski 6 years ago
parent
commit
df62463e27
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 3
      src/widget/widget.cpp

3
src/widget/widget.cpp

@ -1850,8 +1850,6 @@ Group* Widget::createGroup(int groupId, const GroupId& groupPersistentId) @@ -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<GroupChatroom> chatroom(new GroupChatroom(newgroup));
@ -2412,7 +2410,6 @@ void Widget::setActiveToolMenuButton(ActiveToolMenuButton newActiveButton) @@ -2412,7 +2410,6 @@ void Widget::setActiveToolMenuButton(ActiveToolMenuButton newActiveButton)
void Widget::retranslateUi()
{
Core* core = core;
ui->retranslateUi(this);
setUsername(core->getUsername());
setStatusMessage(core->getStatusMessage());

Loading…
Cancel
Save