BC, LC: Forbidden duplicate window.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-08-04 16:09:38 +02:00
1 parent 289c8ed129
commit 94a0a96659
6 files changed
+57 -25

No files matched your search

+4 -4
View File
@@ -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})"
)