Skip to content

Commit d0f3502

Browse files
committed
fix: remove feature selector from foliation dialog
1 parent 7d8d47a commit d0f3502

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

loopstructural/gui/modelling/geological_model_tab/add_foliation_dialog.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ def __init__(self, parent=None, *, data_manager=None, model_manager=None):
2828
self.buttonBox.accepted.connect(self.add_foliation)
2929
self.buttonBox.rejected.connect(self.cancel)
3030

31-
self.modelFeatureComboBox.addItems(
32-
[f.name for f in self.model_manager.features() if not f.name.startswith("__")]
33-
)
31+
3432
self.name_valid = False
3533
self.name_error = ""
3634

@@ -94,8 +92,7 @@ def add_foliation(self):
9492
return
9593

9694
folded_feature_name = None
97-
if self.modelFeatureComboBox.currentText() != "":
98-
folded_feature_name = self.modelFeatureComboBox.currentText()
95+
9996

10097
self.data_manager.add_foliation_to_model(self.name, folded_feature_name=folded_feature_name)
10198
self.accept() # Close the dialog

loopstructural/gui/modelling/geological_model_tab/add_foliation_dialog.ui

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@
6161
</property>
6262
</widget>
6363
</item>
64-
<item>
65-
<widget class="QComboBox" name="modelFeatureComboBox">
66-
<property name="toolTip">
67-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Link fold to feature&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
68-
</property>
69-
</widget>
70-
</item>
7164
<item>
7265
<widget class="QDialogButtonBox" name="buttonBox">
7366
<property name="standardButtons">

0 commit comments

Comments
 (0)