fixed small problem with loading of list into favorites menu filter selection combobox

This commit is contained in:
Jared Bruni
2021-10-19 23:31:18 -07:00
parent 447f46b569
commit c5d7ac4d33

View File

@@ -27,8 +27,11 @@ void DefineWindow::createControls() {
def_load = new QPushButton("Load", this);
def_load->setGeometry(340, 290, 100, 20);
for(auto &i : ac::svAllSorted) {
def_filters->addItem(i.c_str());
static int q = 0;
if((++q)%2 == 0 && main_window->checkAdd(i.c_str()) == false && i.find("Intertwine") == std::string::npos && i.find("InOrder") == std::string::npos)
def_filters->addItem(i.c_str());
}
connect(def_set, SIGNAL(clicked()), this, SLOT(setFilterName()));
connect(def_clear, SIGNAL(clicked()), this, SLOT(clearFilterNames()));