X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Faliasesmodel.cpp;h=3fab383413cdbb2f0b801435fab2e9cdfa057bd1;hp=acc0b2adfabcbb83a8e1885f42ae5e6fb4611211;hb=a83608156c3a561a0ba6d9625303040c02329550;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce
diff --git a/src/qtui/settingspages/aliasesmodel.cpp b/src/qtui/settingspages/aliasesmodel.cpp
index acc0b2ad..3fab3834 100644
--- a/src/qtui/settingspages/aliasesmodel.cpp
+++ b/src/qtui/settingspages/aliasesmodel.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2005-09 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 *
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "aliasesmodel.h"
@@ -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);
}