summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
Diffstat (limited to 'grc')
-rw-r--r--grc/core/Constants.py1
-rw-r--r--grc/core/params/dtypes.py2
-rw-r--r--grc/gui/Application.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/grc/core/Constants.py b/grc/core/Constants.py
index 93adec26be..3421d05331 100644
--- a/grc/core/Constants.py
+++ b/grc/core/Constants.py
@@ -20,6 +20,7 @@ DATA_DIR = os.path.dirname(__file__)
BLOCK_DTD = os.path.join(DATA_DIR, 'block.dtd')
DEFAULT_FLOW_GRAPH = os.path.join(DATA_DIR, 'default_flow_graph.grc')
DEFAULT_HIER_BLOCK_LIB_DIR = os.path.expanduser('~/.grc_gnuradio')
+DEFAULT_FLOW_GRAPH_ID = 'default'
CACHE_FILE = os.path.expanduser('~/.cache/grc_gnuradio/cache_v2.json')
diff --git a/grc/core/params/dtypes.py b/grc/core/params/dtypes.py
index a582bcae85..2d4b237aa4 100644
--- a/grc/core/params/dtypes.py
+++ b/grc/core/params/dtypes.py
@@ -13,7 +13,7 @@ from .. import Constants
# Blacklist certain ids, its not complete, but should help
-ID_BLACKLIST = ['self', 'default'] + dir(builtins)
+ID_BLACKLIST = ['self'] + dir(builtins)
try:
from gnuradio import gr
ID_BLACKLIST.extend(attr for attr in dir(
diff --git a/grc/gui/Application.py b/grc/gui/Application.py
index 87c5cf0ed8..ccd94a90ae 100644
--- a/grc/gui/Application.py
+++ b/grc/gui/Application.py
@@ -660,7 +660,7 @@ class Application(Gtk.Application):
file_path = FileDialogs.SaveFlowGraph(main, page.file_path).run()
if file_path is not None:
- if flow_graph.options_block.params['id'].get_value() == 'default':
+ if flow_graph.options_block.params['id'].get_value() == Constants.DEFAULT_FLOW_GRAPH_ID:
file_name = os.path.basename(file_path).replace(".grc", "")
flow_graph.options_block.params['id'].set_value(file_name)
flow_graph_update(flow_graph)