mirror of https://gitlab.com/pamhyr/pamhyr2
BC: Fix paste command.
parent
ce5808e3ce
commit
fd0a8ddf51
|
|
@ -188,7 +188,7 @@ class BoundaryCondition(SQLSubModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def time_convert(cls, data):
|
def time_convert(cls, data):
|
||||||
if data is str and data.count(":") == 3:
|
if type(data) is str and data.count(":") == 3:
|
||||||
return old_pamhyr_date_to_timestamp(data)
|
return old_pamhyr_date_to_timestamp(data)
|
||||||
|
|
||||||
return int(data)
|
return int(data)
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,8 @@ class EditBoundaryConditionWindow(PamhyrWindow):
|
||||||
def _paste(self):
|
def _paste(self):
|
||||||
header, data = self.parseClipboardTable()
|
header, data = self.parseClipboardTable()
|
||||||
|
|
||||||
|
logger.debug(f"paste: h:{header}, d:{data}")
|
||||||
|
|
||||||
if len(data) == 0:
|
if len(data) == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue