From 607aed3f112d0671b7669f54e45a504cd4b556d7 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Wed, 12 Mar 2025 10:49:04 +0100 Subject: [PATCH] Mainwindow: 'save' call 'save_as' when study are never saved before. --- View/mainwindow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/View/mainwindow.py b/View/mainwindow.py index d6b7c38..209bc3c 100644 --- a/View/mainwindow.py +++ b/View/mainwindow.py @@ -268,7 +268,10 @@ class Ui_MainWindow(object): ) def save(self): - UpdateTableForSave() + if stg.dirname_save_as: + UpdateTableForSave() + else: + self.save_as() def open(self): reader = ReadTableForOpen()