diff options
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index e81b3b121..1ed857851 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -2247,7 +2247,11 @@ void DolphinView::applyDynamicView() for (const auto &file : itemList) { ++checkedItems; +#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) + const QString type = file.mimetype().slice(0, 5); +#else const QString type = file.mimetype().sliced(0, 5); +#endif if (type == "image" || type == "video") { ++imageAndVideoCount; |
