From 251341013213be909de75ebac19be0ee9e68048d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 3 Mar 2014 22:21:33 -0800 Subject: Fix possibly uninitialized value I'm not sure about this one. It's possible that there's something happening behind the scenes that I don't understand. But let's just initialize this to 0 and be sure. Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 3c455206b..25deca094 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -906,6 +906,7 @@ QVariant TreeItem::data(int column, int role) const TreeModel::TreeModel(QObject *parent) : QAbstractItemModel(parent) { + columns = 0; // I'm not sure about this one - I can't see where it gets initialized rootItem = new TreeItem(); } -- cgit v1.2.3-70-g09d2