diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-19 07:44:16 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-19 07:44:16 (GMT) |
commit | 38cae33c50c1e5594c97d08f8e56e3b4788d602a (patch) | |
tree | 93452f96f26ecfe31890af20cb51f2707aa96eac /tools/designer/src | |
parent | 03f7e1f5315f076fcb7234b3d29d120d6779595c (diff) | |
download | Qt-38cae33c50c1e5594c97d08f8e56e3b4788d602a.zip Qt-38cae33c50c1e5594c97d08f8e56e3b4788d602a.tar.gz Qt-38cae33c50c1e5594c97d08f8e56e3b4788d602a.tar.bz2 |
Designer/Resourceview: Suppress warning about QFileInfo on empty path.
Diffstat (limited to 'tools/designer/src')
-rw-r--r-- | tools/designer/src/lib/shared/qtresourceview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/designer/src/lib/shared/qtresourceview.cpp b/tools/designer/src/lib/shared/qtresourceview.cpp index c15942f..859f239 100644 --- a/tools/designer/src/lib/shared/qtresourceview.cpp +++ b/tools/designer/src/lib/shared/qtresourceview.cpp @@ -664,6 +664,8 @@ QString QtResourceView::selectedResource() const void QtResourceView::selectResource(const QString &resource) { + if (resource.isEmpty()) + return; QFileInfo fi(resource); QDir dir = fi.absoluteDir(); if (fi.isDir()) |