From 594abf90a8a5a3186d472c8144acb19a00407c08 Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 2 May 2017 11:55:24 +0000 Subject: [PATCH] Tell the user to cancel the extraction first if they try to exit while it's in progress. --- main_window.py | 1 + startup_widget.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main_window.py b/main_window.py index 1e05167..3179367 100644 --- a/main_window.py +++ b/main_window.py @@ -170,6 +170,7 @@ class MainWindow( QMainWindow ) : if type(widget) is StartupWidget : # don't allow this if we are analyzing files if widget.analyze_thread : + MainWindow.show_info_msg( "Please cancel the analysis first." ) QApplication.beep() evt.ignore() return diff --git a/startup_widget.py b/startup_widget.py index 3490e85..6ea9ab0 100644 --- a/startup_widget.py +++ b/startup_widget.py @@ -289,7 +289,7 @@ class StartupWidget( QWidget ) : """Load the database and start the main application.""" fname = self.le_load_db_fname.text().strip() if not fname : - MainWindow.show_error_msg( "Please choose a database to load." ) + MainWindow.show_error_msg( "Please choose a database to open." ) self.le_load_db_fname.setFocus() return if not os.path.isfile( fname ) :