It works with QString() but that's a bug, I didn't expect it to
work with my fromUserInput code and wrote otherwise in its documentation...
QList<QUrl> Dolphin::validateUris(const QStringList& uriList)
{
QList<QUrl> Dolphin::validateUris(const QStringList& uriList)
{
+ const QString currentDir = QDir::currentPath();
QList<QUrl> urls;
foreach (const QString& str, uriList) {
QList<QUrl> urls;
foreach (const QString& str, uriList) {
- const QUrl url = QUrl::fromUserInput(str, QString(), QUrl::AssumeLocalFile);
+ const QUrl url = QUrl::fromUserInput(str, currentDir, QUrl::AssumeLocalFile);
if (url.isValid()) {
urls.append(url);
} else {
if (url.isValid()) {
urls.append(url);
} else {