fix: Crash on some Linux systems when opening files
This commit is contained in:
parent
e4431749e1
commit
6a7bbb8752
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user