Commit b45afb61 authored by claes's avatar claes

Disable save when preview is started

parent 398490ff
......@@ -1366,6 +1366,11 @@ static void ge_activate_save( Widget w, ge_tCtx gectx, XmAnyCallbackStruct *data
{
char name[40];
if ( gectx->graph->trace_started) {
ge_message( gectx, 'I', "Nothing to save");
return;
}
gectx->graph->get_name( name);
if ( strcmp( name, "") == 0)
{
......@@ -1384,6 +1389,11 @@ static void ge_activate_save_as( Widget w, ge_tCtx gectx, XmAnyCallbackStruct *d
{
char name[40];
if ( gectx->graph->trace_started) {
ge_message( gectx, 'E', "Preview is active");
return;
}
gectx->graph->get_name( name);
if ( ! gectx->graph->is_subgraph())
ge_open_input_dialog( gectx, "Graph name", "Save Graph", name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment