diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-23 17:19:18 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-23 17:19:18 +0000 |
| commit | cfe1ebf0f2d2a0854582893d68ebbf528786a068 (patch) | |
| tree | cb770bf975b17af81454e36f2d2872af52730a9b /src/qmmpui/commandlinemanager.cpp | |
| parent | a6fdc2749f67e83950da524bc439a21b0b3e6754 (diff) | |
| download | qmmp-cfe1ebf0f2d2a0854582893d68ebbf528786a068.tar.gz qmmp-cfe1ebf0f2d2a0854582893d68ebbf528786a068.tar.bz2 qmmp-cfe1ebf0f2d2a0854582893d68ebbf528786a068.zip | |
fixed api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2426 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/commandlinemanager.cpp')
| -rw-r--r-- | src/qmmpui/commandlinemanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<CommandLineOption *> *CommandLineManager::m_options = 0; -QStringList CommandLineManager::m_files; +QHash<CommandLineOption*, QString> *CommandLineManager::m_files = 0; void CommandLineManager::checkOptions() { if (!m_options) { - m_files.clear(); m_options = new QList<CommandLineOption *>; + m_files = new QHash<CommandLineOption*, QString>; 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)); } } |
