mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Selection valid check not working correctly
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user