Commit f7e3befd authored by Dan Pascu's avatar Dan Pascu

Fixed signal handler names to follow convention

parent bcf22257
...@@ -170,12 +170,12 @@ class MainWindow(base_class, ui_class): ...@@ -170,12 +170,12 @@ class MainWindow(base_class, ui_class):
# History menu actions # History menu actions
self.history_manager = HistoryManager() self.history_manager = HistoryManager()
self.missed_calls_menu.aboutToShow.connect(self._SH_MissedCallsMenuShown) self.missed_calls_menu.aboutToShow.connect(self._SH_MissedCallsMenuAboutToShow)
self.missed_calls_menu.triggered.connect(self._AH_HistoryEntryClicked) self.missed_calls_menu.triggered.connect(self._AH_HistoryMenuTriggered)
self.placed_calls_menu.aboutToShow.connect(self._SH_PlacedCallsMenuShown) self.placed_calls_menu.aboutToShow.connect(self._SH_PlacedCallsMenuAboutToShow)
self.placed_calls_menu.triggered.connect(self._AH_HistoryEntryClicked) self.placed_calls_menu.triggered.connect(self._AH_HistoryMenuTriggered)
self.received_calls_menu.aboutToShow.connect(self._SH_ReceivedCallsMenuShown) self.received_calls_menu.aboutToShow.connect(self._SH_ReceivedCallsMenuAboutToShow)
self.received_calls_menu.triggered.connect(self._AH_HistoryEntryClicked) self.received_calls_menu.triggered.connect(self._AH_HistoryMenuTriggered)
# Tools menu actions # Tools menu actions
self.answering_machine_action.triggered.connect(self._AH_EnableAnsweringMachineTriggered) self.answering_machine_action.triggered.connect(self._AH_EnableAnsweringMachineTriggered)
...@@ -351,7 +351,7 @@ class MainWindow(base_class, ui_class): ...@@ -351,7 +351,7 @@ class MainWindow(base_class, ui_class):
account = action.data() account = action.data()
SessionManager().start_call("Voicemail", account.voicemail_uri, account=account) SessionManager().start_call("Voicemail", account.voicemail_uri, account=account)
def _AH_HistoryEntryClicked(self, action): def _AH_HistoryMenuTriggered(self, action):
account_manager = AccountManager() account_manager = AccountManager()
session_manager = SessionManager() session_manager = SessionManager()
try: try:
...@@ -578,19 +578,19 @@ class MainWindow(base_class, ui_class): ...@@ -578,19 +578,19 @@ class MainWindow(base_class, ui_class):
def _SH_SwitchViewButtonChangedView(self, view): def _SH_SwitchViewButtonChangedView(self, view):
self.main_view.setCurrentWidget(self.contacts_panel if view is SwitchViewButton.ContactView else self.sessions_panel) self.main_view.setCurrentWidget(self.contacts_panel if view is SwitchViewButton.ContactView else self.sessions_panel)
def _SH_MissedCallsMenuShown(self): def _SH_MissedCallsMenuAboutToShow(self):
self.missed_calls_menu.clear() self.missed_calls_menu.clear()
for entry in reversed(self.history_manager.missed_calls): for entry in reversed(self.history_manager.missed_calls):
action = self.missed_calls_menu.addAction(unicode(entry)) action = self.missed_calls_menu.addAction(unicode(entry))
action.entry = entry action.entry = entry
def _SH_PlacedCallsMenuShown(self): def _SH_PlacedCallsMenuAboutToShow(self):
self.placed_calls_menu.clear() self.placed_calls_menu.clear()
for entry in reversed(self.history_manager.placed_calls): for entry in reversed(self.history_manager.placed_calls):
action = self.placed_calls_menu.addAction(unicode(entry)) action = self.placed_calls_menu.addAction(unicode(entry))
action.entry = entry action.entry = entry
def _SH_ReceivedCallsMenuShown(self): def _SH_ReceivedCallsMenuAboutToShow(self):
self.received_calls_menu.clear() self.received_calls_menu.clear()
for entry in reversed(self.history_manager.received_calls): for entry in reversed(self.history_manager.received_calls):
action = self.received_calls_menu.addAction(unicode(entry)) action = self.received_calls_menu.addAction(unicode(entry))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment