summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Schroer <3470424+dl1ksv@users.noreply.github.com>2018-08-15 18:47:57 +0200
committerMarcus Müller <marcus@hostalia.de>2018-08-17 18:56:24 +0200
commit6bfe4661a87cb7fc5f47ec219e89f8e6215bd03f (patch)
treea55a5ba42fd839134cebc5b7b0c606f6d3cce612
parent4349a434c169f2d6c358830046aa216e2828af82 (diff)
Update Application.py
Fixing NameError: name 'SaveScreenShotDialog' is not defined in Application.py and removing unneeded call to set xterm . See issue https://github.com/gnuradio/gnuradio/issues/1937
-rw-r--r--grc/gui/Application.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/grc/gui/Application.py b/grc/gui/Application.py
index 70cf9b78b2..93f5a9d1f5 100644
--- a/grc/gui/Application.py
+++ b/grc/gui/Application.py
@@ -663,7 +663,7 @@ class Application(Gtk.Application):
flow_graph_update(new_flow_graph)
page.saved = False
elif action == Actions.FLOW_GRAPH_SCREEN_CAPTURE:
- file_path, background_transparent = SaveScreenShotDialog(main, page.get_file_path()).run()
+ file_path, background_transparent = FileDialogs.SaveScreenShot(main, page.file_path).run()
if file_path is not None:
try:
Utils.make_screenshot(flow_graph, file_path, background_transparent)
@@ -689,7 +689,6 @@ class Application(Gtk.Application):
if not page.process:
Actions.FLOW_GRAPH_GEN()
xterm = self.platform.config.xterm_executable
- Dialogs.show_missing_xterm(main, xterm)
if self.config.xterm_missing() != xterm:
if not os.path.exists(xterm):
Dialogs.show_missing_xterm(main, xterm)