@@ -1285,8 +1287,8 @@ class VideoWidget(VideoSurface, ui_class):
self.fullscreen_button.show()
else:
ifnotself.detach_button.isChecked():
self.setGeometry(self.geometryHint(self.parent_widget))# force a geometry change before reparenting, else we will get a change from (-1, -1) to the parent geometry hint
self.setParent(self.parent_widget)# this is probably because since it unmaps when it's reparented, the geometry change won't appear from fullscreen
self.setGeometry(self.geometryHint(self.parent_widget))# force a geometry change before re-parenting, else we will get a change from (-1, -1) to the parent geometry hint
self.setParent(self.parent_widget)# this is probably because since it unmaps when it's re-parented, the geometry change won't appear from fullscreen
self.setGeometry(self.geometryHint())# to the new size, since we changed the geometry after returning from fullscreen, while invisible
self.mute_button.active=False
self.hold_button.active=False
...
...
@@ -1378,15 +1380,15 @@ class VideoWidget(VideoSurface, ui_class):
# choose another one to select (a chat only or ended session if available, else one with audio but keep audio on hold? or select nothing and display the dummy tab?)
self.tab_widget.setCurrentWidget(self.selected_session.chat_widget)# why do we switch the tab here, but do everything else in the selected_session property setter? -Dan
@@ -2078,7 +2080,7 @@ class AudioSessionItem(object):
ifstage=='dns_lookup':
self.status=Status('Looking up destination...')
elifstage=='connecting':
self.tls=self.blink_session.transport=='tls'
self.tls=self.blink_session.transport=='tls'
self.status=Status('Connecting...')
elifstage=='ringing':
self.status=Status('Ringing...')
...
...
@@ -2117,7 +2119,7 @@ class AudioSessionItem(object):
def_NH_BlinkSessionDidConnect(self,notification):
session=notification.sender
self.tls=session.transport=='tls'
self.tls=session.transport=='tls'
if'audio'insession.streams:
self.widget.mute_button.setEnabled(True)
self.widget.hold_button.setEnabled(True)
...
...
@@ -2364,12 +2366,12 @@ class AudioSessionModel(QAbstractListModel):
iflen(dragged.client_conference.sessions)==2:
dragged.client_conference=None
sibling.client_conference=None
## eventually only move past the last conference to minimize movement. see how this feels during usage. (or sort them alphabetically with conferences at the top) -Dan
#for position, session in enumerate(self.sessions):
# # maybe only move past the last conference to minimize movement. see how this feels during usage. (or sort them alphabetically with conferences at the top) -Dan
#for position, session in enumerate(self.sessions):
# if session not in (dragged, sibling) and session.client_conference is None:
# move_point = position
# break
#else:
#else:
# move_point = len(self.sessions)
move_point=len(self.sessions)
dragged_row=self.sessions.index(dragged)
...
...
@@ -2747,7 +2749,7 @@ class AudioSessionListView(QListView):
else:
self.setCurrentIndex(self.model().index(-1))
self.context_menu.hide()
#print "-- audio selection changed %s -> %s (ignore=%s)" % ([x.row() for x in deselected.indexes()], [x.row() for x in selected.indexes()], self.ignore_selection_changes)
#print "-- audio selection changed %s -> %s (ignore=%s)" % ([x.row() for x in deselected.indexes()], [x.row() for x in selected.indexes()], self.ignore_selection_changes)
ifself.ignore_selection_changes:
return
notification_center=NotificationCenter()
...
...
@@ -2911,14 +2913,14 @@ class AudioSessionListView(QListView):
ifnotification.data.active_sessionisNone:
selection=selection_model.selection()
# check the code in this if branch if it's needed -Dan
#selected_blink_session = selection[0].topLeft().data(Qt.UserRole).blink_session if selection else None
#if notification.data.previous_active_session is selected_blink_session:
#selected_blink_session = selection[0].topLeft().data(Qt.UserRole).blink_session if selection else None
#if notification.data.previous_active_session is selected_blink_session:
# print "-- audio session list updating selection to None None"