Commit 317a899d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix message box when passing a remote url that includes a file

Summary: The if was negated, I assume it was a typo

Test Plan: I don't get the following screenshot anymore

Reviewers: #frameworks, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27034
parent 7bd349d4
......@@ -231,7 +231,7 @@ void KDEPlatformFileDialog::setDirectory(const QUrl &directory)
KJobWidgets::setWindow(job, this);
if (job->exec()) {
KIO::UDSEntry entry = job->statResult();
if (!entry.isDir()) {
if (entry.isDir()) {
// this is probably a file remove the file part
m_fileWidget->setUrl(directory.adjusted(QUrl::RemoveFilename));
m_fileWidget->setSelectedUrl(directory);
......
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