summaryrefslogtreecommitdiff
path: root/IrcChannelForm.ui.qml
diff options
context:
space:
mode:
authorJoe Robinson <joe@grabyo.com>2017-04-20 14:28:57 +0100
committerJoe Robinson <joe@grabyo.com>2017-04-20 14:28:57 +0100
commit4e172068e8e817d80d2e9575289feb8a4314be49 (patch)
treeea327d4572ed1e7c45bb602ba319abe3bc416ea4 /IrcChannelForm.ui.qml
parent5a5ddc9cf65513239fc094b5eeae1fd5bdad3eb0 (diff)
Add handling of nick changes
Diffstat (limited to 'IrcChannelForm.ui.qml')
-rw-r--r--IrcChannelForm.ui.qml8
1 files changed, 8 insertions, 0 deletions
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 {