X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=2a71576de2309419dce7b97d5b2f01db8668cf5c;hb=cd3dc8132fa88bd81e8aa2c9947d3540e1f56f37;hp=c61cf9e83366b7bcba8973acfcb69ea6c2476a4b;hpb=e8a5c49548759045b49c208c250c6f61c7fdfcd5;p=quassel.git diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index c61cf9e8..2a71576d 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -19,6 +19,7 @@ ***************************************************************************/ #include "treemodel.h" +#include "global.h" #include #include @@ -317,7 +318,7 @@ TreeModel::TreeModel(const QList &data, QObject *parent) rootItem = new SimpleTreeItem(data, 0); connectItem(rootItem); - if(QCoreApplication::instance()->arguments().contains("--debugmodel")) { + if(Global::parser.isSet("debugmodel")) { connect(this, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)), this, SLOT(debug_rowsAboutToBeInserted(const QModelIndex &, int, int))); connect(this, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),