From 7ab7df07a863f7ec806c39a635655c90ed4d936e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 11 Sep 2009 12:18:23 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B0=D1=82=D1=87=20=D0=B4=D0=BB=D1=8F=20kdelib?= =?UTF-8?q?s-4.3.x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit возвращающий отображение иконок на папках в samba разделах --- .../kde-base/kdelibs-4.3.0-1-samba-icon.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 install/patches/kde-base/kdelibs-4.3.0-1-samba-icon.patch diff --git a/install/patches/kde-base/kdelibs-4.3.0-1-samba-icon.patch b/install/patches/kde-base/kdelibs-4.3.0-1-samba-icon.patch new file mode 100644 index 0000000..3636ec4 --- /dev/null +++ b/install/patches/kde-base/kdelibs-4.3.0-1-samba-icon.patch @@ -0,0 +1,19 @@ +--- kdelibs-4.3.1.orig/kdecore/services/kfoldermimetype.cpp ++++ kdelibs-4.3.1/kdecore/services/kfoldermimetype.cpp +@@ -77,11 +77,11 @@ QString KFolderMimeTypePrivate::iconName( const KUrl& _url ) const + // There are also other directories with 0 size, such as /proc, that may + // be mounted, but those are unlikely to contain .directory (and checking + // this would require KMountPoint from kio). +- KDE_struct_stat buff; +- if (KDE_stat( QFile::encodeName( _url.toLocalFile()), &buff ) == 0 +- && S_ISDIR( buff.st_mode ) && buff.st_size == 0 ) { +- return KMimeTypePrivate::iconName( _url ); +- } ++ //KDE_struct_stat buff; ++ //if (KDE_stat( QFile::encodeName( _url.toLocalFile()), &buff ) == 0 ++ // && S_ISDIR( buff.st_mode ) && buff.st_size == 0 ) { ++ // return KMimeTypePrivate::iconName( _url ); ++ //} + + KUrl u( _url ); + u.addPath( ".directory" );