diff options
Diffstat (limited to 'src/gui/MachinaGUI.cpp')
-rw-r--r-- | src/gui/MachinaGUI.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 437d5e1..fe7462e 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -24,7 +24,7 @@ #include <pthread.h> #include <libgnomecanvasmm.h> #include <libglademm/xml.h> -#include "redlandmm/Model.hpp" +#include "sord/sordmm.hpp" #include "machina/Controller.hpp" #include "machina/Engine.hpp" #include "machina/Machine.hpp" @@ -448,12 +448,12 @@ MachinaGUI::menu_file_save() if (_save_uri == "" || _save_uri.substr(0, 5) != "file:") { menu_file_save_as(); } else { - if (!raptor_uri_uri_string_is_file_uri((const unsigned char*)_save_uri.c_str())) + if (_save_uri.substr(0, 5) != "file:") menu_file_save_as(); - Redland::Model model(_engine->rdf_world(), _save_uri); + Sord::Model model(_engine->rdf_world(), _save_uri); _engine->machine()->write_state(model); - model.serialise_to_file(_save_uri, "turtle"); + model.write_to_file(_save_uri, "turtle"); } } @@ -503,9 +503,9 @@ MachinaGUI::menu_file_save_as() if (confirm) { _save_uri = uri; - Redland::Model model(_engine->rdf_world(), _save_uri); + Sord::Model model(_engine->rdf_world(), _save_uri); _engine->machine()->write_state(model); - model.serialise_to_file(_save_uri, "turtle"); + model.write_to_file(_save_uri, "turtle"); } } } |