mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
dolphin_kf6, fix error for Qt < 6.8 (#12768)
This commit is contained in:
@@ -29,6 +29,7 @@ REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/dolphin-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="ddd5e5622594792490695999188c6215c3a0821787c71dfb57dbfdd08e1ce935"
|
||||
SOURCE_DIR="dolphin-$portVersion"
|
||||
PATCHES="dolphin-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="dolphin.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
|
||||
22
kde-apps/dolphin/patches/dolphin-25.08.0.patchset
Normal file
22
kde-apps/dolphin/patches/dolphin-25.08.0.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From e0a33f4f7b5089fb82eeca1cc2f4262cdef42dc8 Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Sun, 17 Aug 2025 16:54:30 +0200
|
||||
Subject: Fix Qt >= 6.8 error
|
||||
|
||||
|
||||
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
|
||||
index b702f5b..e81b3b1 100644
|
||||
--- a/src/views/dolphinview.cpp
|
||||
+++ b/src/views/dolphinview.cpp
|
||||
@@ -2247,7 +2247,7 @@ void DolphinView::applyDynamicView()
|
||||
|
||||
for (const auto &file : itemList) {
|
||||
++checkedItems;
|
||||
- const QString type = file.mimetype().slice(0, 5);
|
||||
+ const QString type = file.mimetype().sliced(0, 5);
|
||||
|
||||
if (type == "image" || type == "video") {
|
||||
++imageAndVideoCount;
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Reference in New Issue
Block a user