fix: Crash on some Linux systems when opening files

This commit is contained in:
WerWolv
2022-09-17 08:55:18 +02:00
parent e4431749e1
commit 6a7bbb8752

View File

@@ -247,7 +247,7 @@ namespace hex {
}
bool isValid() {
return !s_providers.empty() && s_currentProvider < i64(s_providers.size());
return !s_providers.empty() && s_currentProvider >= 0 && s_currentProvider < i64(s_providers.size());
}
void markDirty() {