aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/MachinaGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/MachinaGUI.cpp')
-rw-r--r--src/gui/MachinaGUI.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index 83ae23b..437d5e1 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -451,8 +451,7 @@ MachinaGUI::menu_file_save()
if (!raptor_uri_uri_string_is_file_uri((const unsigned char*)_save_uri.c_str()))
menu_file_save_as();
- Redland::Model model(_engine->rdf_world());
- model.set_base_uri(_save_uri);
+ Redland::Model model(_engine->rdf_world(), _save_uri);
_engine->machine()->write_state(model);
model.serialise_to_file(_save_uri, "turtle");
}
@@ -503,9 +502,8 @@ MachinaGUI::menu_file_save_as()
fin.close();
if (confirm) {
- Redland::Model model(_engine->rdf_world());
_save_uri = uri;
- model.set_base_uri(_save_uri);
+ Redland::Model model(_engine->rdf_world(), _save_uri);
_engine->machine()->write_state(model);
model.serialise_to_file(_save_uri, "turtle");
}