search works!

however, some bugs:
(1) inserts items back unsorted
(2) sync erros with projectm on preset switch. not good!


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@646 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-11-04 04:24:57 +00:00
parent f64bd2e264
commit d79b3d284e
2 changed files with 12 additions and 11 deletions

View File

@ -165,12 +165,13 @@ unsigned int PresetLoader::addPresetURL(const std::string & url, const std::stri
}
void PresetLoader::removePreset(unsigned int index) {
std::vector<std::string>::iterator pos = m_entries.begin();
asser(pos != m_entries.end());
// std::vector<std::string>::iterator pos = m_entries.begin();
//assert(pos != m_entries.end());
// pos += index;
pos += index;
m_entries.erase(pos);
m_presetNames.erase(pos);
m_entries.erase(m_entries.begin()+index);
m_presetNames.erase(m_presetNames.begin()+index);
}
const std::string & PresetLoader::getPresetURL ( unsigned int index) const {