fix: Selection in diff view being retained
This commit is contained in:
parent
7336c8dddc
commit
5d608603cb
@ -18,8 +18,11 @@ namespace hex::plugin::builtin {
|
|||||||
ViewDiff::ViewDiff() : View("hex.builtin.view.diff.name") {
|
ViewDiff::ViewDiff() : View("hex.builtin.view.diff.name") {
|
||||||
|
|
||||||
EventManager::subscribe<EventProviderClosed>(this, [this](prv::Provider *) {
|
EventManager::subscribe<EventProviderClosed>(this, [this](prv::Provider *) {
|
||||||
this->m_columns[0].provider = -1;
|
for (u8 i = 0; i < 2; i++) {
|
||||||
this->m_columns[1].provider = -1;
|
this->m_columns[i].provider = -1;
|
||||||
|
this->m_columns[i].hexEditor.setSelectionUnchecked(std::nullopt, std::nullopt);
|
||||||
|
}
|
||||||
|
|
||||||
this->m_diffs.clear();
|
this->m_diffs.clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user