aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authortassaron2017-06-01 20:31:15 -0400
committertassaron2017-06-01 20:31:15 -0400
commit2768084b30da136dcfcb0c4e2e4264ad66083e4e (patch)
tree897d5cc7301ab7f7865d9b0ad57248a3ac8cf053 /main.py
parentd31add0d955f58d1fa375d3166ac519a21f80c6b (diff)
resolution comboBox gets updated
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.py b/main.py
index ba62c2c..8bbbf08 100644
--- a/main.py
+++ b/main.py
@@ -354,7 +354,7 @@ class Main(QtCore.QObject):
if not os.path.exists(destination):
os.makedirs(destination)
for f in os.listdir(destination):
- self.window.comboBox_openPreset.addItem(f)
+ self.window.comboBox_openPreset.addItem(f)
def openSavePresetDialog(self):
if self.window.listWidget_componentList.currentRow() == -1:
@@ -476,6 +476,11 @@ class Main(QtCore.QObject):
os.rename(settingsPath, backupPath)
shutil.copyfile(projSettingsPath, settingsPath)
self.settings.sync()
+ currentRes = str(self.settings.value('outputWidth'))+'x'+str(self.settings.value('outputHeight'))
+ for i in range(self.window.comboBox_resolution.count()-1):
+ if self.window.comboBox_resolution.itemText(i) == currentRes:
+ self.window.comboBox_resolution.setCurrentIndex(i)
+ break
def showMessage(self, string, icon=QtGui.QMessageBox.Information, showCancel=False):
msg = QtGui.QMessageBox()