BC: Edit: Minor change.

mesh
Pierre-Antoine Rouby 2023-05-11 14:21:30 +02:00
parent 1775bf2729
commit 31ca9bf70c
2 changed files with 11 additions and 8 deletions

View File

@ -48,6 +48,8 @@ class ExtendedTimeEdit(AWidget):
days = 0
stime = time
# if ',' in time, time format is 'DD days, HH:MM:SS',
# otherelse is 'HH:MM:SS'
if "," in time:
s = time.strip().split(" ")
days = int(s[0])

View File

@ -69,6 +69,7 @@ class EditBoundaryConditionWindow(ASubMainWindow, ListedSubWindow):
undo = self._undo_stack
)
if self._data.header[0] == "time":
self._delegate_time = ExTimeDelegate(
data = self._data,
mode = "type",