mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-17 04:55:51 +00:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user