mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
BC, LC: Forbidden duplicate window.
This commit is contained in:
1 parent
289c8ed129
commit
94a0a96659
6 files changed
+57
-25
No files matched your search
@@ -45,7 +45,7 @@ from View.LateralContribution.Edit.Plot import Plot
|
||||
_translate = QCoreApplication.translate
|
||||
|
||||
class EditLateralContributionWindow(ASubMainWindow, ListedSubWindow):
|
||||
def __init__(self, title="Edit lateral conditribution",
|
||||
def __init__(self, title="Edit lateral contribution",
|
||||
data=None, study=None, parent=None):
|
||||
self._data = data
|
||||
self._study = study
|
||||
@@ -54,7 +54,7 @@ class EditLateralContributionWindow(ASubMainWindow, ListedSubWindow):
|
||||
self.compute_title()
|
||||
|
||||
super(EditLateralContributionWindow, self).__init__(
|
||||
name=self._title, ui="EditLateralContribution", parent=parent
|
||||
name=title, ui="EditLateralContribution", parent=parent
|
||||
)
|
||||
|
||||
self.ui.setWindowTitle(self._title)
|
||||
@@ -69,9 +69,9 @@ class EditLateralContributionWindow(ASubMainWindow, ListedSubWindow):
|
||||
edge_name = (self._data.edge.name if self._data.edge is not None
|
||||
else _translate("LateralContribution", "Not associate"))
|
||||
self._title = (
|
||||
_translate("Edit Lateral contribution", self._title) +
|
||||
_translate("Edit lateral contribution", self._title) +
|
||||
f" - {self._study.name} " +
|
||||
f" - {self._data.name} " +
|
||||
f" - {self._data.name} ({self._data.id}) " +
|
||||
f"({long_types[self._data.lctype]} - {edge_name})"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user