summaryrefslogtreecommitdiffstats
path: root/src/imports/folderlistmodel
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-10-29 03:05:16 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-11-30 03:57:16 (GMT)
commit1de080649c6b810ed6bc05e883795687ecde1f3d (patch)
treea6742e98aade67b553597901bc7396be2012983a /src/imports/folderlistmodel
parentefc41eaa7224c33b5b5af7eae27c93c6748255bc (diff)
downloadQt-1de080649c6b810ed6bc05e883795687ecde1f3d.zip
Qt-1de080649c6b810ed6bc05e883795687ecde1f3d.tar.gz
Qt-1de080649c6b810ed6bc05e883795687ecde1f3d.tar.bz2
Fix Browser.qml warnings
Task-number: QTBUG-15720 Reviewed-by: Martin Jones
Diffstat (limited to 'src/imports/folderlistmodel')
-rw-r--r--src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
index abab33c..9c71004 100644
--- a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
+++ b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
@@ -279,7 +279,7 @@ void QDeclarativeFolderListModel::classBegin()
void QDeclarativeFolderListModel::componentComplete()
{
- if (!d->folder.isValid() || !QDir().exists(d->folder.toLocalFile()))
+ if (!d->folder.isValid() || d->folder.toLocalFile().isEmpty() || !QDir().exists(d->folder.toLocalFile()))
setFolder(QUrl(QLatin1String("file://")+QDir::currentPath()));
if (!d->folderIndex.isValid())