From 1496abca40328a5faa09230741273f2939acd5e8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 12 Mar 2014 04:54:44 +0000 Subject: added icon cache update git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4153 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/winfileassoc.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/qmmpui/winfileassoc.cpp b/src/qmmpui/winfileassoc.cpp index 6b84b5db3..7eb0e6c6f 100644 --- a/src/qmmpui/winfileassoc.cpp +++ b/src/qmmpui/winfileassoc.cpp @@ -37,8 +37,9 @@ */ /* - main changes compared to SMplayer: + main changes compared to SMPlayer: replaced SMPlayer by Qmmp + added icon cache update */ @@ -47,6 +48,11 @@ #include #include #include +#include + +#ifndef SHCNE_ASSOCHANGED +#define SHCNE_ASSOCHANGED __MSABI_LONG(0x08000000) +#endif WinFileAssoc::WinFileAssoc(const QString ClassId, const QString AppName) { @@ -117,7 +123,7 @@ int WinFileAssoc::CreateFileAssociations(const QStringList &fileExtensions) if (RegCU.status() == QSettings::NoError && RegCR.status() == QSettings::NoError) count++; } - + SHChangeNotify(SHCNE_ASSOCHANGED, SHCNF_IDLIST, NULL, NULL); return count; } @@ -230,6 +236,7 @@ int WinFileAssoc::RestoreFileAssociations(const QStringList &fileExtensions) RegCU.remove(ExtKeyName + "/Qmmp_Backup_Application"); RegCU.remove(ExtKeyName + "/Qmmp_Backup_ProgId"); } + SHChangeNotify(SHCNE_ASSOCHANGED, SHCNF_IDLIST, NULL, NULL); return count; } -- cgit v1.2.3-13-gbd6f