From d299e05e02657045879d25f5688348c145a47417 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 18 Jun 2021 11:04:09 -0400 Subject: [PATCH] fix wrong setup of channel view which was causing app to crash --- src/app/chat/views/channel.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/chat/views/channel.nim b/src/app/chat/views/channel.nim index 7c6baf06a0..66045af490 100644 --- a/src/app/chat/views/channel.nim +++ b/src/app/chat/views/channel.nim @@ -21,13 +21,12 @@ QtObject: previousActiveChannelIndex*: int contextChannel*: ChatItemView - proc setup(self: ChannelView) = + proc setup(self: ChannelView) = self.QObject.setup + proc delete*(self: ChannelView) = self.chats.delete self.activeChannel.delete self.contextChannel.delete - self.QObject.setup - - proc delete*(self: ChannelView) = self.QObject.delete + self.QObject.delete proc newChannelView*(status: Status, communities: CommunitiesView): ChannelView = new(result, delete)