X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.cpp;h=a03ae5bd4b69b0fc16d23ced779ea75bc5323630;hb=2f83cb6d01ff68131528797020637887fe0e77b7;hp=b67a447da2509ccbc3d44e7336a4011ef324d525;hpb=6cd120c0b28d9cca7e2465fad731977d532ce74d;p=quassel.git diff --git a/src/client/buffermodel.cpp b/src/client/buffermodel.cpp index b67a447d..a03ae5bd 100644 --- a/src/client/buffermodel.cpp +++ b/src/client/buffermodel.cpp @@ -23,6 +23,8 @@ #include "networkmodel.h" #include "mappedselectionmodel.h" #include "buffer.h" +#include "global.h" + #include BufferModel::BufferModel(NetworkModel *parent) @@ -30,7 +32,7 @@ BufferModel::BufferModel(NetworkModel *parent) _selectionModelSynchronizer(this) { setSourceModel(parent); - if(QCoreApplication::instance()->arguments().contains("--debugbufferswitches")) { + if(Global::parser.isSet("debugbufferswitches")) { connect(_selectionModelSynchronizer.selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(debug_currentChanged(const QModelIndex &, const QModelIndex &))); }