Commit 8affa9da authored by Luci Stanescu's avatar Luci Stanescu

Connected Redial function

parent 559a4274
......@@ -112,6 +112,7 @@ class MainWindow(base_class, ui_class):
self.about_action.triggered.connect(self.about_panel.show)
self.mute_action.triggered.connect(self._SH_MuteButtonClicked)
self.redial_action.triggered.connect(self._SH_RedialActionTriggered)
self.silent_action.triggered.connect(self._SH_SilentButtonClicked)
self.quit_action.triggered.connect(self.close)
......@@ -337,6 +338,11 @@ class MainWindow(base_class, ui_class):
self.mute_button.setChecked(muted)
SIPApplication.voice_audio_bridge.mixer.muted = muted
def _SH_RedialActionTriggered(self):
session_manager = SessionManager()
if session_manager.last_dialed_uri is not None:
session_manager.start_call(None, unicode(session_manager.last_dialed_uri))
def _SH_SearchBoxReturnPressed(self):
address = unicode(self.search_box.text())
if address:
......
......@@ -1682,6 +1682,7 @@ class SessionManager(object):
self.incoming_sessions = []
self.dialog_positions = range(1, 100)
self.current_ringtone = Null
self.last_dialed_uri = None
def initialize(self, main_window, session_model):
self.main_window = main_window
......@@ -1705,6 +1706,7 @@ class SessionManager(object):
except Exception, e:
print 'Invalid URI: %s' % e # Replace with pop-up
else:
self.last_dialed_uri = remote_uri
session = Session(account)
if contact is None:
for contact in self.main_window.contact_model.iter_contacts():
......
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