fixed crash when importing files without an extension

This commit is contained in:
itsmattkc
2018-07-01 18:06:36 +01:00
parent d77e9db1ae
commit d3f6fa8147
4 changed files with 14 additions and 4 deletions
+3
View File
@@ -174,6 +174,9 @@ void Project::process_file_list(QStringList& files) {
// heuristic to determine whether file is part of an image sequence
int lastcharindex = file.lastIndexOf(".")-1;
if (lastcharindex == -2) {
lastcharindex = file.length() - 1;
}
if (file[lastcharindex].isDigit()) {
bool is_img_sequence = false;
QString sequence_test(file);