Commit ec931ad2 authored by Halla Rempt's avatar Halla Rempt

BUG:373777 Add the Volumes folder to the file dialog sidebar on OSX

That way, people can access all their disks more easily.
parent 65ec88b7
......@@ -140,6 +140,16 @@ void KoFileDialog::createFileDialog()
d->fileDialog->setOption(QFileDialog::DontConfirmOverwrite, false);
d->fileDialog->setOption(QFileDialog::HideNameFilterDetails, true);
#ifdef Q_OS_OSX
QList<QUrl> urls = d->fileDialog->sidebarUrls();
QUrl volumes = QUrl::fromLocalFile("\/Volumes");
if (!urls.contains(volumes)) {
urls.append(volumes);
}
d->fileDialog->setSidebarUrls(urls);
#endif
if (d->type == SaveFile) {
d->fileDialog->setAcceptMode(QFileDialog::AcceptSave);
d->fileDialog->setFileMode(QFileDialog::AnyFile);
......
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