summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-02-19 07:44:16 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-02-19 07:44:16 (GMT)
commit38cae33c50c1e5594c97d08f8e56e3b4788d602a (patch)
tree93452f96f26ecfe31890af20cb51f2707aa96eac
parent03f7e1f5315f076fcb7234b3d29d120d6779595c (diff)
downloadQt-38cae33c50c1e5594c97d08f8e56e3b4788d602a.zip
Qt-38cae33c50c1e5594c97d08f8e56e3b4788d602a.tar.gz
Qt-38cae33c50c1e5594c97d08f8e56e3b4788d602a.tar.bz2
Designer/Resourceview: Suppress warning about QFileInfo on empty path.
-rw-r--r--tools/designer/src/lib/shared/qtresourceview.cpp2
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())