diff --git a/statapp/models/fileslc_model.py b/statapp/models/fileslc_model.py index cc25980..b8acde7 100644 --- a/statapp/models/fileslc_model.py +++ b/statapp/models/fileslc_model.py @@ -17,7 +17,7 @@ class FileSLCModel: def loadFile(self): self.file_name, _ = QFileDialog.getOpenFileName(None, "Загрузить файл", "", "Files (*.txt;*.csv)") - if not self.file_name: + if self.file_name: try: content = np.genfromtxt(self.file_name, delimiter=',', invalid_raise=True) except ValueError as e: @@ -30,4 +30,4 @@ class FileSLCModel: def closeFile(self): self.file_name = None - pass \ No newline at end of file + pass