mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
parent
e1a99f1909
commit
cc986b7177
@ -287,14 +287,16 @@ void OpenInFileBrowser(const QStringList& filenames) {
|
|||||||
QSet<QString> dirs;
|
QSet<QString> dirs;
|
||||||
|
|
||||||
foreach (const QString& filename, filenames) {
|
foreach (const QString& filename, filenames) {
|
||||||
// Ignore things that look like URLs
|
QUrl url(filename);
|
||||||
if (filename.contains("://"))
|
if (url.scheme() != "file") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
QString path = url.toLocalFile();
|
||||||
|
|
||||||
|
if (!QFile::exists(path))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!QFile::exists(filename))
|
const QString directory = QFileInfo(path).dir().path();
|
||||||
continue;
|
|
||||||
|
|
||||||
const QString directory = QFileInfo(filename).dir().path();
|
|
||||||
|
|
||||||
if (dirs.contains(directory))
|
if (dirs.contains(directory))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user