mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-14 02:40:00 +01:00
updated fixed problem
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include<mutex>
|
#include<mutex>
|
||||||
#include"plugin.h"
|
#include"plugin.h"
|
||||||
#include<sys/stat.h>
|
#include<sys/stat.h>
|
||||||
|
#include<unordered_map>
|
||||||
#include <opencv2/core/ocl.hpp>
|
#include <opencv2/core/ocl.hpp>
|
||||||
|
|
||||||
std::unordered_map<std::string, FilterValue> filter_map;
|
std::unordered_map<std::string, FilterValue> filter_map;
|
||||||
@@ -1443,15 +1444,15 @@ void AC_MainWindow::menuFilterChanged(int index) {
|
|||||||
loading = true;
|
loading = true;
|
||||||
std::string menu_n = menuNames[index];
|
std::string menu_n = menuNames[index];
|
||||||
filters->clear();
|
filters->clear();
|
||||||
std::vector<std::string> *v = ac::filter_menu_map[menu_n].menu_list;
|
std::vector<std::string> &v = *ac::filter_menu_map[menu_n].menu_list;
|
||||||
|
|
||||||
auto end = v->end();
|
std::unordered_map<std::string, std::string> map_values;
|
||||||
for(auto it = v->begin(); it != end; ++it) {
|
for(int i = 0; i < static_cast<int>(v.size()); ++i) {
|
||||||
end = std::remove(it + 1, end, *it);
|
if(map_values.find(v[i]) == map_values.end()) {
|
||||||
}
|
map_values[v[i]] = v[i];
|
||||||
for(auto in = v->begin(); in != v->end(); ++in) {
|
filters->addItem(v[i].c_str());
|
||||||
filters->addItem(in->c_str());
|
}
|
||||||
}
|
}
|
||||||
filters->setCurrentIndex(0);
|
filters->setCurrentIndex(0);
|
||||||
loading = false;
|
loading = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user