Commit 3b684d26 authored by Sven Brauch's avatar Sven Brauch

open dialog: pass the directory, not the file name

passing the file name works for local files for some strange reason,
but fails for remotes (e.g. ftp://).
parent 0c8289b6
......@@ -235,7 +235,7 @@ void KateViewManager::slotDocumentOpen()
QString fileList;
const QList<QUrl> urls = QFileDialog::getOpenFileUrls(m_mainWindow, i18n("Open File"), cv->document()->url());
const QList<QUrl> urls = QFileDialog::getOpenFileUrls(m_mainWindow, i18n("Open File"), cv->document()->url().adjusted(QUrl::StripTrailingSlash | QUrl::RemoveFilename));
Q_FOREACH(const QUrl & url, urls) {
qint64 size = QFile(url.toLocalFile()).size();
......
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