From 6165eedb6cf55831798ca76d3cc4b4a0f048257c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 12 May 2013 12:06:34 +0000 Subject: fixed regression git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3448 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/qmmpplugincache.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/qmmp/qmmpplugincache.cpp b/src/qmmp/qmmpplugincache.cpp index 9a9817266..d84dddbbc 100644 --- a/src/qmmp/qmmpplugincache.cpp +++ b/src/qmmp/qmmpplugincache.cpp @@ -39,12 +39,12 @@ QmmpPluginCache::QmmpPluginCache(const QString &file, QSettings *settings) m_path = info.QFileInfo::canonicalFilePath(); settings->beginGroup("PluginCache"); -#ifdef Q_OS_WIN - if(settings->allKeys().contains(m_path)) -#else - QString copy = m_path; - if(settings->allKeys().contains(copy.remove(0,1))) + QString key = m_path; +#ifndef Q_OS_WIN + key.remove(0,1); #endif + if(settings->allKeys().contains(key)) + { QStringList values = settings->value(m_path).toStringList(); if(values.count() != 3) @@ -151,7 +151,7 @@ void QmmpPluginCache::cleanup(QSettings *settings) #ifdef Q_OS_WIN if(!QFile::exists(key)) #else - if(!QFile::exists(key)) + if(!QFile::exists("/" + key)) #endif { settings->remove(key); -- cgit v1.2.3-13-gbd6f