mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 20:00:01 +01:00
check if filter in this version before loading
This commit is contained in:
@@ -1321,6 +1321,23 @@ void AC_MainWindow::load_CustomFile() {
|
|||||||
}
|
}
|
||||||
s_left = item.substr(0,pos);
|
s_left = item.substr(0,pos);
|
||||||
s_right = item.substr(pos+1, item.length());
|
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 val1 = filter_map[s_left].filter;
|
||||||
int val2 = filter_map[s_right].filter;
|
int val2 = filter_map[s_right].filter;
|
||||||
if(!(val1 >= 0 && val1 < ac::draw_max-4)) {
|
if(!(val1 >= 0 && val1 < ac::draw_max-4)) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#ifndef _QT_HEADERS__
|
#ifndef _QT_HEADERS__
|
||||||
#define _QT_HEADERS__
|
#define _QT_HEADERS__
|
||||||
#define ac_version "v1.25.1"
|
#define ac_version "v1.26.0"
|
||||||
#include<QApplication>
|
#include<QApplication>
|
||||||
#include<QMainWindow>
|
#include<QMainWindow>
|
||||||
#include<QDialog>
|
#include<QDialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user