Skip to content

Commit

Permalink
Clear Magic Bar after activating roster item if it's the only result
Browse files Browse the repository at this point in the history
  • Loading branch information
horazont committed Dec 21, 2017
1 parent 4a02ce4 commit d14c2f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jabbercat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ def _roster_item_activated(self, index):
self.ui.conversation_pages.setCurrentWidget(page)
page.set_focus_to_message_input()

if self.filtered_roster.rowCount() == 1:
self.ui.magic_bar.clear()

def _roster_context_menu_requested(self, pos):
self._roster_item_menu.popup(self.ui.roster_view.mapToGlobal(pos))

Expand Down

0 comments on commit d14c2f4

Please sign in to comment.