aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authortassaron2017-06-01 13:17:36 -0400
committertassaron2017-06-01 13:17:36 -0400
commitf55d7d120639cc4b83850699b8de57e036977288 (patch)
treeefe51f5e33317e8f5165094945c2882dd6ed2777 /main.py
parent11e5ec04397143b440c4bb4f00c2ea3772ca322d (diff)
saveable titleFont, xPosition glitches fixed
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index 1cbe1db..c8ad4e8 100644
--- a/main.py
+++ b/main.py
@@ -388,12 +388,14 @@ class Main(QtCore.QObject):
if ch != 1024: # 1024 = OK
return
# remove old copies of the preset
- for i in range(0, self.windowcomboBox_openPreset.count()):
+ presetLen = self.window.comboBox_openPreset.count()
+ for i in range(0, presetLen):
if self.window.comboBox_openPreset.itemText(i) == filename:
self.window.comboBox_openPreset.removeItem(i)
with open(filepath, 'w') as f:
f.write('%s' % repr(saveValueStore))
self.window.comboBox_openPreset.addItem(filename)
+ self.window.comboBox_openPreset.setCurrentIndex(presetLen-1)
def openPreset(self):
if self.window.comboBox_openPreset.currentIndex() < 1: