1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Selection valid check not working correctly

This commit is contained in:
WerWolv 2024-01-31 15:31:51 +01:00
parent 4a9bac3cd5
commit 944b3a5b6c

View File

@ -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() {