From 90619423fffc611b6cad466c29829f3fa5d130ec Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 30 Jan 2013 00:23:32 +0000 Subject: [PATCH] silence unnecessary warning --- qt/file-tree.cc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/qt/file-tree.cc b/qt/file-tree.cc index 233465dba..f9c9f962b 100644 --- a/qt/file-tree.cc +++ b/qt/file-tree.cc @@ -463,26 +463,22 @@ FileTreeModel :: index (int row, int column, const QModelIndex& parent) const { QModelIndex i; - if (!hasIndex (row, column, parent)) - { - qWarning ("I don't have this index"); - } - else + if (hasIndex (row, column, parent)) { FileTreeItem * parentItem; - if(!parent.isValid()) + if (!parent.isValid ()) parentItem = myRootItem; else parentItem = itemFromIndex (parent); - FileTreeItem * childItem = parentItem->child(row); + FileTreeItem * childItem = parentItem->child (row); if (childItem) - i = createIndex(row, column, childItem); + i = createIndex (row, column, childItem); } - return i; + return i; } QModelIndex -- 2.40.0