diff options
author | Weblate <noreply@weblate.org> | 2017-09-20 10:04:33 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2017-09-20 10:04:33 +0000 |
commit | 6a570a2c9648c47c3c58d96f139feab6596105ae (patch) | |
tree | a61a7e3e8149c96474db636b282559ddd9d90ed9 /src-qt5/core/libLumina/XDGMime.cpp | |
parent | Translated using Weblate (Finnish) (diff) | |
parent | Get the window embed routine cleaned up and demo-ready. (diff) | |
download | lumina-6a570a2c9648c47c3c58d96f139feab6596105ae.tar.gz lumina-6a570a2c9648c47c3c58d96f139feab6596105ae.tar.bz2 lumina-6a570a2c9648c47c3c58d96f139feab6596105ae.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/libLumina/XDGMime.cpp')
-rw-r--r-- | src-qt5/core/libLumina/XDGMime.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/XDGMime.cpp b/src-qt5/core/libLumina/XDGMime.cpp index 3983f6b5..cbbeff75 100644 --- a/src-qt5/core/libLumina/XDGMime.cpp +++ b/src-qt5/core/libLumina/XDGMime.cpp @@ -12,6 +12,9 @@ static QStringList mimeglobs; static qint64 mimechecktime; QString XDGMime::fromFileName(QString filename){ + if(QFile::exists(filename) && QFileInfo(filename).isDir()){ + return "inode/directory"; + } //Convert a filename into a mimetype return findAppMimeForFile(filename.section("/",-1),false); } |