src/gui/plugins.cpp: fix sort pluins without index

Origin commit data
------------------
Branch: ni/coolstream
Commit: 882a7b2e47
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-12-04 (Tue, 04 Dec 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-12-04 19:57:02 +01:00
parent bb05c77813
commit 93441eaf76
2 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ void CPlugins::loadPlugins()
frameBuffer = CFrameBuffer::getInstance();
number_of_plugins = 0;
plugin_list.clear();
sindex = 100;
scanDir(g_settings.plugin_hdd_dir.c_str());
scanDir(PLUGINDIR_USB);
scanDir(PLUGINDIR_VAR);
@@ -184,7 +184,7 @@ bool CPlugins::parseCfg(plugin *plugin_data)
while (linecount < 20 && getline(inFile, line[linecount++]))
{};
plugin_data->index = 0;
plugin_data->index = sindex++;
plugin_data->key = 0; //CRCInput::RC_nokey
plugin_data->fb = false;
plugin_data->rc = false;