aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/XDGMime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/XDGMime.cpp')
-rw-r--r--src-qt5/core/libLumina/XDGMime.cpp3
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);
}
bgstack15