X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Faliasesmodel.cpp;h=3fab383413cdbb2f0b801435fab2e9cdfa057bd1;hp=aed4c1a78fb5d705e799f8b09c81fbb28c460892;hb=a83608156c3a561a0ba6d9625303040c02329550;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222
diff --git a/src/qtui/settingspages/aliasesmodel.cpp b/src/qtui/settingspages/aliasesmodel.cpp
index aed4c1a7..3fab3834 100644
--- a/src/qtui/settingspages/aliasesmodel.cpp
+++ b/src/qtui/settingspages/aliasesmodel.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2005-2012 by the Quassel Project *
+ * Copyright (C) 2005-2016 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -64,6 +64,8 @@ QVariant AliasesModel::data(const QModelIndex &index, int role) const
" - $i..j represents the i'th to j'th parameter separated by spaces.
"
" - $i.. represents all parameters from i on separated by spaces.
"
" - $i:hostname represents the hostname of the user identified by the i'th parameter or a * if unknown.
"
+ " - $i:ident represents the ident of the user identified by the i'th parameter or a * if unknown.
"
+ " - $i:account represents the account of the user identified by the i'th parameter or a * if logged out or unknown.
"
" - $0 the whole string.
"
" - $nick your current nickname
"
" - $channel the name of the selected channel
"
@@ -238,7 +240,8 @@ void AliasesModel::revert()
_configChanged = false;
emit configChanged(false);
- reset();
+ beginResetModel();
+ endResetModel();
}
@@ -255,7 +258,8 @@ void AliasesModel::commit()
void AliasesModel::initDone()
{
_modelReady = true;
- reset();
+ beginResetModel();
+ endResetModel();
emit modelReady(true);
}
@@ -275,6 +279,7 @@ void AliasesModel::clientDisconnected()
// clear
_clonedAliasManager = ClientAliasManager();
_modelReady = false;
- reset();
+ beginResetModel();
+ endResetModel();
emit modelReady(false);
}