From 69206235af2c15235ff7ee1df9ff590715d8ce2d Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Mon, 28 Nov 2022 15:10:07 +0100 Subject: [PATCH] bugfix: reader read also previous files --- src/gui_qt/io/filereaders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui_qt/io/filereaders.py b/src/gui_qt/io/filereaders.py index 54cacb1..d8c4fcd 100755 --- a/src/gui_qt/io/filereaders.py +++ b/src/gui_qt/io/filereaders.py @@ -41,6 +41,9 @@ class QFileReader(QtCore.QObject): return self.readfiles(files) def readfiles(self, fname: list[str] | str) -> list: + # clear old data + self.data = [] + if not isinstance(fname, list): fname = [fname]