diff options
| author | tassaron | 2017-06-01 13:17:36 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-01 13:17:36 -0400 |
| commit | f55d7d120639cc4b83850699b8de57e036977288 (patch) | |
| tree | efe51f5e33317e8f5165094945c2882dd6ed2777 /main.py | |
| parent | 11e5ec04397143b440c4bb4f00c2ea3772ca322d (diff) | |
saveable titleFont, xPosition glitches fixed
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: |
