Fix the split "Search" menu action not opening the correct search window (#4305)

* Fix split menu "Search" action

It now opens a split-specific search instead of a global one

* Add changelog entry
This commit is contained in:
pajlada
2023-01-21 11:51:29 +01:00
committed by GitHub
parent e15a5727ad
commit 56f7c91a64
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -373,8 +373,12 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
menu->addAction(
"Popup", this->split_, &Split::popup,
h->getDisplaySequence(HotkeyCategory::Window, "popup", {{"split"}}));
menu->addAction("Search", this->split_, &Split::showSearch,
h->getDisplaySequence(HotkeyCategory::Split, "showSearch"));
menu->addAction(
"Search", this->split_,
[this] {
this->split_->showSearch(true);
},
h->getDisplaySequence(HotkeyCategory::Split, "showSearch"));
menu->addAction(
"Set filters", this->split_, &Split::setFiltersDialog,
h->getDisplaySequence(HotkeyCategory::Split, "pickFilters"));