Use QFileInfo rather than QDir to determine whether a given path is a

valid directory before adding to QFileSystemWatcher.
This commit is contained in:
Tobias Doerffel
2009-02-27 19:14:43 +01:00
parent a93a400539
commit bbafa5ec19

View File

@@ -86,7 +86,7 @@ QByteArray LocalResourcesProvider::fetchData( const ResourcesItem * _item,
void LocalResourcesProvider::addDirectory( const QString & _path )
{
if( QDir( _path ).exists() )
if( QFileInfo( _path ).isDir() )
{
m_watcher.addPath( _path );
}