Fix crash when launching with managed room specified (#357)

This commit is contained in:
et0h 2020-10-09 15:54:00 +01:00
parent 175c1775aa
commit 69607c740c
3 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,5 @@
version = '1.6.6'
revision = ' beta 1'
revision = ' beta 2'
milestone = 'Yoitsu'
release_number = '88'
release_number = '89'
projectURL = 'https://syncplay.pl/'

View File

@ -1042,8 +1042,11 @@ class SyncplayClient(object):
def storeControlPassword(self, room, password):
if password:
self.controlpasswords[room] = password
if self._config['autosaveJoinsToList']:
self.ui.addRoomToList(room+":"+password)
try:
if self._config['autosaveJoinsToList']:
self.ui.addRoomToList(room+":"+password)
except:
pass
def getControlledRoomPassword(self, room):
if room in self.controlpasswords:

View File

@ -891,8 +891,11 @@ class MainWindow(QtWidgets.QMainWindow):
def updateRoomName(self, room=""):
self.roomsCombobox.setEditText(room)
if self.config['autosaveJoinsToList']:
self.addRoomToList(room)
try:
if self.config['autosaveJoinsToList']:
self.addRoomToList(room)
except:
pass
def showDebugMessage(self, message):
print(message)