diff options
| author | Alex Fiestas <afiestas@kde.org> | 2012-10-02 19:21:39 (GMT) |
|---|---|---|
| committer | Alex Fiestas <afiestas@kde.org> | 2012-10-02 19:21:39 (GMT) |
| commit | 8e9bfe11f54e3fa5000a86773b21bdcdcff44bd5 (patch) | |
| tree | 0bae3d6402b85e210cb374591a1df100d8080339 | |
| parent | 03fbdb46a86acb7516030b1c79df9180568ebb5b (diff) | |
Check if the startDir is relative instead of empty to make smb:// work
REVIEW:106475
| -rw-r--r-- | kfile/kfilewidget.cpp | 2 |
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 |
