diff options
author | Joe Robinson <joe@lc8n.com> | 2017-04-15 18:04:05 +0200 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2017-04-15 18:04:05 +0200 |
commit | d1879fae05beb4e84f7c738b981381c98e98b991 (patch) | |
tree | 96b48524fdd01a4fc3102600af4066d375ed9f13 /IrcChannelForm.ui.qml | |
parent | 166a8206a3747628182a97acbc25bf393e78eac9 (diff) |
Add join and part handling
Diffstat (limited to 'IrcChannelForm.ui.qml')
-rw-r--r-- | IrcChannelForm.ui.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/IrcChannelForm.ui.qml b/IrcChannelForm.ui.qml index 9b37cf6..d1f5e59 100644 --- a/IrcChannelForm.ui.qml +++ b/IrcChannelForm.ui.qml @@ -74,6 +74,14 @@ Item { function add_nick(nick){ nickListModel.append({name: nick}) } + + function remove_nick(nick){ + for (var i = 0; i < nickListModel.count; ++i) { + if (nickListModel.get(i).name === nick) { + nickListModel.remove(i) + } + } + } } Button { |