summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidget.py
diff options
context:
space:
mode:
Diffstat (limited to 'DockWidgets/DockWidget.py')
-rw-r--r--DockWidgets/DockWidget.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/DockWidgets/DockWidget.py b/DockWidgets/DockWidget.py
index 7e8a221..97ac7c8 100644
--- a/DockWidgets/DockWidget.py
+++ b/DockWidgets/DockWidget.py
@@ -32,6 +32,7 @@ class DockWidget(QDockWidget,ui_dialog):
if(modes_list):
for j in modes_list:
self.comboBox.addItem(str(self.obj.variables[j]['name']))
+ self.comboBox.setCurrentText(self.obj.variables[self.obj.mode]['name'])
self.mode_selection()
else:
self.comboBox.setDisabled(True)
@@ -69,6 +70,7 @@ class DockWidget(QDockWidget,ui_dialog):
except Exception as e:
print(e)
+
def show_error(self):
QMessageBox.about(self, 'Important', "Please fill all fields with data")