diff --git a/src/asammdf/gui/dialogs/error_dialog.py b/src/asammdf/gui/dialogs/error_dialog.py index d7198113f..1597039f7 100644 --- a/src/asammdf/gui/dialogs/error_dialog.py +++ b/src/asammdf/gui/dialogs/error_dialog.py @@ -1,3 +1,5 @@ +import os + from PySide6 import QtCore, QtGui, QtWidgets from ..ui.error_dialog import Ui_ErrorDialog @@ -6,7 +8,7 @@ class ErrorDialog(Ui_ErrorDialog, QtWidgets.QDialog): def __init__(self, title, message, trace, *args, **kwargs): remote = kwargs.pop("remote", False) - timeout = kwargs.pop("timeout", 120) + timeout = kwargs.pop("timeout", int(os.environ.get("ASAMMDF_ERROR_DIALOG_TIMEOUT", 90))) logger = kwargs.pop("logger", None) super().__init__(*args, **kwargs) diff --git a/src/asammdf/gui/widgets/mdi_area.py b/src/asammdf/gui/widgets/mdi_area.py index a33cd8edf..286d6180e 100644 --- a/src/asammdf/gui/widgets/mdi_area.py +++ b/src/asammdf/gui/widgets/mdi_area.py @@ -3851,7 +3851,6 @@ def set_cursor(self, widget, pos): wid.set_timestamp(pos) def set_x_range(self, widget, x_range): - print("SET X RANGE", widget, x_range) if not self.subplots_link: return diff --git a/src/asammdf/gui/widgets/tree.py b/src/asammdf/gui/widgets/tree.py index 2c00644cd..55cf977d8 100644 --- a/src/asammdf/gui/widgets/tree.py +++ b/src/asammdf/gui/widgets/tree.py @@ -793,7 +793,11 @@ def keyPressEvent(self, event): if not selected_items: return - info = json.loads(info) + try: + info = json.loads(info) + except: + return + if info["type"] == "channel": info["color"] = fn.mkColor(info["color"])