fix: Diff view crash when closing provider that's being diffed
This commit is contained in:
parent
dacb64ae66
commit
a6eaa34f6d
@ -34,10 +34,16 @@ namespace hex::plugin::builtin {
|
||||
this->m_upperCaseHex = static_cast<int>(upperCaseHex);
|
||||
}
|
||||
});
|
||||
|
||||
EventManager::subscribe<EventProviderClosed>(this, [this](prv::Provider *) {
|
||||
this->m_providerA = -1;
|
||||
this->m_providerB = -1;
|
||||
});
|
||||
}
|
||||
|
||||
ViewDiff::~ViewDiff() {
|
||||
EventManager::unsubscribe<EventSettingsChanged>(this);
|
||||
EventManager::unsubscribe<EventProviderClosed>(this);
|
||||
}
|
||||
|
||||
static void drawProviderSelector(int &provider) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user