fix: Selection valid check not working correctly
This commit is contained in:
parent
4a9bac3cd5
commit
944b3a5b6c
@ -175,7 +175,8 @@ namespace hex {
|
||||
}
|
||||
|
||||
bool isSelectionValid() {
|
||||
return getSelection().has_value();
|
||||
auto selection = getSelection();
|
||||
return selection.has_value() && selection->provider != nullptr;
|
||||
}
|
||||
|
||||
std::optional<ProviderRegion> getSelection() {
|
||||
|
Loading…
Reference in New Issue
Block a user