diff options
author | japm48 <japm48@users.noreply.github.com> | 2020-03-29 04:06:14 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-03-30 08:59:29 -0400 |
commit | d4626dc2d36b79ee198e13ad6b3b643d7ef0dc1e (patch) | |
tree | a9b3e3fef01d4efe4fab676b77f0fe57284d3c00 /grc | |
parent | 4802e0827db80ca6ac92831d0cc7369040901b09 (diff) |
grc: disable save prompt on new blank pages
Diffstat (limited to 'grc')
-rw-r--r-- | grc/gui/Application.py | 2 | ||||
-rw-r--r-- | grc/gui/MainWindow.py | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/grc/gui/Application.py b/grc/gui/Application.py index d1b03de6bf..d66046b4a5 100644 --- a/grc/gui/Application.py +++ b/grc/gui/Application.py @@ -132,7 +132,6 @@ class Application(Gtk.Application): main.new_page(file_path, show=file_path_to_show == file_path) if not main.current_page: main.new_page() # ensure that at least a blank page exists - main.current_page.saved = False main.btwin.search_entry.hide() @@ -596,7 +595,6 @@ class Application(Gtk.Application): ################################################## elif action == Actions.FLOW_GRAPH_NEW: main.new_page() - main.current_page.saved = False args = (GLib.Variant('s', 'qt_gui'),) flow_graph = main.current_page.flow_graph flow_graph.options_block.params['generate_options'].set_value(str(args[0])[1:-1]) diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py index c994ac23d2..2d8de8cd08 100644 --- a/grc/gui/MainWindow.py +++ b/grc/gui/MainWindow.py @@ -332,7 +332,6 @@ class MainWindow(Gtk.ApplicationWindow): self.notebook.remove_page(self.notebook.page_num(self.page_to_be_closed)) if ensure and self.notebook.get_n_pages() == 0: self.new_page() #no pages, make a new one - self.current_page.saved = False self.page_to_be_closed = None #set the page to be closed back to None return True |