Tell the user to cancel the extraction first if they try to exit while it's in progress.

master
Pacman Ghost 7 years ago
parent 85ae68e2ae
commit 594abf90a8
  1. 1
      main_window.py
  2. 2
      startup_widget.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

@ -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 ) :

Loading…
Cancel
Save