Commit 58014676 authored by David Jarvie's avatar David Jarvie

Fix return values changed in d6ca392cbe2a728ed68df8ecccae8dc37290eb9b

parent 8b8213c4
......@@ -2130,10 +2130,10 @@ QString browseFile(const QString& caption, QString& defaultDir, const QString& i
if (!initialFile.isEmpty())
fileDlg->setSelection(initialFile);
if (fileDlg->exec() != QDialog::Accepted)
return fileDlg ? QString() : QString();
return fileDlg ? QString("") : QString(); // return null only if dialog was deleted
KUrl url = fileDlg->selectedUrl();
if (url.isEmpty())
return QString();
return QString(""); // return empty, non-null string
defaultDir = url.isLocalFile() ? url.upUrl().toLocalFile() : url.directory();
return (mode & KFile::LocalOnly) ? url.pathOrUrl() : url.prettyUrl();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment