1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: Selection in diff view being retained

This commit is contained in:
WerWolv 2023-05-20 21:13:40 +02:00
parent 7336c8dddc
commit 5d608603cb

View File

@ -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();
}); });