fix wrong setup of channel view which was causing app to crash
This commit is contained in:
parent
599bf731fb
commit
d299e05e02
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue