summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Fiestas <afiestas@kde.org>2012-10-02 19:21:39 (GMT)
committerAlex Fiestas <afiestas@kde.org>2012-10-02 19:21:39 (GMT)
commit8e9bfe11f54e3fa5000a86773b21bdcdcff44bd5 (patch)
tree0bae3d6402b85e210cb374591a1df100d8080339
parent03fbdb46a86acb7516030b1c79df9180568ebb5b (diff)
Check if the startDir is relative instead of empty to make smb:// work
REVIEW:106475
-rw-r--r--kfile/kfilewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kfile/kfilewidget.cpp b/kfile/kfilewidget.cpp
index 8e2f967..65deca2 100644
--- a/kfile/kfilewidget.cpp
+++ b/kfile/kfilewidget.cpp
@@ -2593,7 +2593,7 @@ KUrl KFileWidget::getStartUrl( const KUrl& startDir,
}
else // not special "kfiledialog" URL
{
- if (!startDir.directory().isEmpty()) // has directory, maybe with filename
+ if (!startDir.isRelative()) // has directory, maybe with filename
{
ret = startDir; // will be checked by stat later
// If we won't be able to list it (e.g. http), then use default