Skip to content

Commit

Permalink
Merge pull request #8048 from drew2a/fix/6660
Browse files Browse the repository at this point in the history
Remove search bar click event
  • Loading branch information
drew2a authored Jun 3, 2024
2 parents 958b655 + 634c5c9 commit c221128
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/tribler/gui/tribler_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ def __init__(
self.tribler_core_test_exception_shortcut = QShortcut(QKeySequence("Ctrl+Alt+Shift+C"), self)
connect(self.tribler_core_test_exception_shortcut.activated, self.on_test_tribler_core_exception)

connect(self.top_search_bar.clicked, self.clicked_search_bar)
connect(self.top_search_bar.returnPressed, self.on_top_search_bar_return_pressed)

# Remove the focus rect on OS X
Expand Down Expand Up @@ -852,12 +851,6 @@ def deselect_all_menu_buttons(self, except_select=None):
button.setEnabled(True)
button.setChecked(False)

def clicked_search_bar(self, checked=False):
query = self.top_search_bar.text()
if query and self.search_results_page.has_results:
self.deselect_all_menu_buttons()
self.stackedWidget.setCurrentIndex(PAGE_SEARCH_RESULTS)

def on_top_search_bar_return_pressed(self):
query_text = self.top_search_bar.text()
if not query_text:
Expand Down

0 comments on commit c221128

Please sign in to comment.