X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=2a71576de2309419dce7b97d5b2f01db8668cf5c;hp=c61cf9e83366b7bcba8973acfcb69ea6c2476a4b;hb=2f83cb6d01ff68131528797020637887fe0e77b7;hpb=a33e42aee121185f479667b2104a15fc2033762e 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)),