aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-22 02:45:06 +0000
committerDavid Robillard <d@drobilla.net>2007-03-22 02:45:06 +0000
commit61c123747f791633bb9b61a1c528d7fbb7d7bdd7 (patch)
tree23516f30b18a0447de5e5188a30822ede389ce9e /src/gui
parentb80654a5193536050c8f8e494ba5fd402b7a18aa (diff)
downloadmachina-61c123747f791633bb9b61a1c528d7fbb7d7bdd7.tar.gz
machina-61c123747f791633bb9b61a1c528d7fbb7d7bdd7.tar.bz2
machina-61c123747f791633bb9b61a1c528d7fbb7d7bdd7.zip
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
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/MachinaGUI.cpp6
1 files changed, 3 insertions, 3 deletions
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<Machina::Machine> new_machine = _engine->load_machine(_save_uri);
+ SharedPtr<Machina::Machine> 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();
}