From 34aaeab8b19674f3b8e3ad8dc18a517b4ef28e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 7 Jan 2014 17:52:51 +0100 Subject: [PATCH] Fixed GUI bug --- kcc/KCC_gui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 82b994e..d6b0f03 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -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)