From 88f6f92f37e9c9b392f46741fc76294e9a35815f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 3 Dec 2018 20:37:20 +0000 Subject: removed obsolete xp code git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8485 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/winfileassocpage.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/qmmpui/winfileassocpage.cpp') diff --git a/src/qmmpui/winfileassocpage.cpp b/src/qmmpui/winfileassocpage.cpp index dfb1479bf..93603ca10 100644 --- a/src/qmmpui/winfileassocpage.cpp +++ b/src/qmmpui/winfileassocpage.cpp @@ -98,20 +98,9 @@ void WinFileAssocPage::loadAssociations() } } -int WinFileAssocPage::ProcessAssociations(QStringList& current, QStringList& old) +int WinFileAssocPage::ProcessAssociations(QStringList& current) { WinFileAssoc RegAssoc; - - QStringList toRestore; - - //Restore unselected associations - foreach(const QString& ext, old) - { - if (!current.contains(ext)) - toRestore.append(ext); - } - - RegAssoc.RestoreFileAssociations(toRestore); return RegAssoc.CreateFileAssociations(current); } @@ -129,7 +118,7 @@ void WinFileAssocPage::saveAssociations() if(extensions == m_regExtensions) return; - int processed = ProcessAssociations(extensions, m_regExtensions); + int processed = ProcessAssociations(extensions); if (processed != extensions.count()) { -- cgit v1.2.3-13-gbd6f