summaryrefslogtreecommitdiff
path: root/IrcChannelForm.ui.qml
diff options
context:
space:
mode:
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 {