check if filter in this version before loading

This commit is contained in:
lostjared
2019-02-10 14:03:47 -08:00
parent 646e8f0850
commit c69cd3ceff
2 changed files with 18 additions and 1 deletions

View File

@@ -1321,6 +1321,23 @@ void AC_MainWindow::load_CustomFile() {
}
s_left = item.substr(0,pos);
s_right = item.substr(pos+1, item.length());
if(filter_map.find(s_left) == filter_map.end()) {
QString itext = "Filter: ";
itext += s_left.c_str();
itext += " Not found in this version... old version?";
QMessageBox::information(this, "Filter Not Found", itext);
return;
}
if(s_right != "None" && filter_map.find(s_right) == filter_map.end()) {
QString itext = "Filter: ";
itext += s_right.c_str();
itext += " Not found in this version... old version?";
QMessageBox::information(this, "Filter Not Found", itext);
return;
}
int val1 = filter_map[s_left].filter;
int val2 = filter_map[s_right].filter;
if(!(val1 >= 0 && val1 < ac::draw_max-4)) {

View File

@@ -6,7 +6,7 @@
#ifndef _QT_HEADERS__
#define _QT_HEADERS__
#define ac_version "v1.25.1"
#define ac_version "v1.26.0"
#include<QApplication>
#include<QMainWindow>
#include<QDialog>