1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-15 18:56:28 +00:00

Fixed GUI bug

This commit is contained in:
Paweł Jastrzębski
2014-01-07 17:52:51 +01:00
parent eaff6cc633
commit 34aaeab8b1

View File

@@ -1168,6 +1168,8 @@ class KCCGUI(KCC_ui.Ui_KCC):
GUI.FormatBox.addItem(eval('self.icons.' + f + 'Format'), f)
if self.lastDevice > GUI.DeviceBox.count():
self.lastDevice = 0
if profilesGUI[self.lastDevice] == "Separator":
self.lastDevice = 0
if self.currentFormat > GUI.FormatBox.count():
self.currentFormat = 0
GUI.DeviceBox.setCurrentIndex(self.lastDevice)