From 4e172068e8e817d80d2e9575289feb8a4314be49 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Thu, 20 Apr 2017 14:28:57 +0100 Subject: Add handling of nick changes --- IrcChannelForm.ui.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'IrcChannelForm.ui.qml') diff --git a/IrcChannelForm.ui.qml b/IrcChannelForm.ui.qml index a3158d0..993c41f 100644 --- a/IrcChannelForm.ui.qml +++ b/IrcChannelForm.ui.qml @@ -106,6 +106,14 @@ Item { } } } + + function update_nick(previous_nick, new_nick){ + for (var i = 0; i < nickListModel.count; ++i) { + if (nickListModel.get(i).nick === previous_nick) { + nickListModel.setProperty(i, "nick", new_nick) + } + } + } } Button { -- cgit v1.2.3