From cfe1ebf0f2d2a0854582893d68ebbf528786a068 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 23 Oct 2011 17:19:18 +0000 Subject: fixed api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2426 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/commandlinemanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qmmpui/commandlinemanager.cpp') diff --git a/src/qmmpui/commandlinemanager.cpp b/src/qmmpui/commandlinemanager.cpp index e4e8dfab1..2409a2ce2 100644 --- a/src/qmmpui/commandlinemanager.cpp +++ b/src/qmmpui/commandlinemanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2010 by Ilya Kotov * + * Copyright (C) 2008-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -33,14 +33,14 @@ using namespace std; QList *CommandLineManager::m_options = 0; -QStringList CommandLineManager::m_files; +QHash *CommandLineManager::m_files = 0; void CommandLineManager::checkOptions() { if (!m_options) { - m_files.clear(); m_options = new QList; + m_files = new QHash; QDir pluginsDir (Qmmp::pluginsPath()); pluginsDir.cd("CommandLineOptions"); @@ -60,7 +60,7 @@ void CommandLineManager::checkOptions() if (option) { m_options->append(option); - m_files << pluginsDir.absoluteFilePath(fileName); + m_files->insert(option, pluginsDir.absoluteFilePath(fileName)); qApp->installTranslator(option->createTranslator(qApp)); } } -- cgit v1.2.3-13-gbd6f