From 61c123747f791633bb9b61a1c528d7fbb7d7bdd7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Mar 2007 02:45:06 +0000 Subject: Serialization fixes for GUI. Loading/Saving of MIDI actions to RDF. git-svn-id: http://svn.drobilla.net/lad/machina@368 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/MachinaGUI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 0ab4356..fdd75c6 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -331,11 +331,11 @@ MachinaGUI::menu_file_open() const int result = dialog.run(); if (result == Gtk::RESPONSE_OK) { - _save_uri = dialog.get_uri(); - SharedPtr new_machine = _engine->load_machine(_save_uri); + SharedPtr new_machine = _engine->load_machine(dialog.get_uri()); if (new_machine) { _canvas->destroy(); _canvas->build(new_machine); + _save_uri = dialog.get_uri(); } } } @@ -407,7 +407,7 @@ MachinaGUI::menu_file_save_as() if (confirm) { Raul::RDFWriter writer; writer.start_to_filename(filename); - machine()->write_state(writer); + _engine->machine()->write_state(writer); writer.finish(); _save_uri = dialog.get_uri(); } -- cgit v1.2.1