QFileSystemModel: remove incorrect #ifndef
authorMarc Mutz <marc.mutz@kdab.com>
Tue, 7 Aug 2012 17:46:38 +0000 (19:46 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 26 Aug 2012 07:07:37 +0000 (09:07 +0200)
No other call to fileInfoGatherer.getInfo(info) is #ifndef'ed on
QT_NO_FILESYSTEMWATCHER, so this one shouldn't be, either.

Change-Id: If145226c13d77460d6169a9ed3028647b0f565b5
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Majid Khan <mkhan3189@gmail.com>
src/widgets/dialogs/qfilesystemmodel.cpp

index d4dede2..5a7895b 100644 (file)
@@ -445,9 +445,7 @@ QFileSystemModelPrivate::QFileSystemNode *QFileSystemModelPrivate::node(const QS
                 return const_cast<QFileSystemModelPrivate::QFileSystemNode*>(&root);
             QFileSystemModelPrivate *p = const_cast<QFileSystemModelPrivate*>(this);
             node = p->addNode(parent, element,info);
-#ifndef QT_NO_FILESYSTEMWATCHER
             node->populate(fileInfoGatherer.getInfo(info));
-#endif
         } else {
             node = parent->children.value(element);
         }