1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

ImportGroup: Properly find the row when inserting path_edit and app_name_edit

This commit is contained in:
loathingKernel 2023-12-12 00:46:22 +02:00
parent 3ce62facd2
commit b5a18f2858
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -199,7 +199,8 @@ class ImportGroup(QGroupBox):
)
self.path_edit.textChanged.connect(self.path_changed)
self.ui.import_layout.setWidget(
self.ui.import_layout.indexOf(self.ui.path_edit_label), QFormLayout.FieldRole, self.path_edit
self.ui.import_layout.getWidgetPosition(self.ui.path_edit_label)[0],
QFormLayout.FieldRole, self.path_edit
)
self.app_name_edit = IndicatorLineEdit(
@ -209,7 +210,8 @@ class ImportGroup(QGroupBox):
)
self.app_name_edit.textChanged.connect(self.app_name_changed)
self.ui.import_layout.setWidget(
self.ui.import_layout.indexOf(self.ui.app_name_label), QFormLayout.FieldRole, self.app_name_edit
self.ui.import_layout.getWidgetPosition(self.ui.app_name_label)[0],
QFormLayout.FieldRole, self.app_name_edit
)
self.ui.import_folder_check.stateChanged.connect(self.import_folder_changed)