diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-07-27 03:30:03 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-07-27 03:30:03 +0000 |
commit | d23fec7b9a0f076256dbd71faae254a78efbe37a (patch) | |
tree | 2a00b13c9d4b15caa1025d30bd5a0d47eb79f7e9 /libs/ardour/audio_library.cc | |
parent | 690e04ed42c7f4f29feb53f54c759dbb7c64884c (diff) |
sfdb paths are saved and restored.prercu
git-svn-id: svn://localhost/ardour2/trunk@700 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_library.cc')
-rw-r--r-- | libs/ardour/audio_library.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/ardour/audio_library.cc b/libs/ardour/audio_library.cc index 1358ebd6d9..ad008f6312 100644 --- a/libs/ardour/audio_library.cc +++ b/libs/ardour/audio_library.cc @@ -46,6 +46,8 @@ using namespace PBD; static char* SOUNDFILE = "http://ardour.org/ontology/Soundfile"; +string AudioLibrary::state_node_name = "AudioLibrary"; + AudioLibrary::AudioLibrary () { // sfdb_paths.push_back("/Users/taybin/sounds"); @@ -74,12 +76,6 @@ AudioLibrary::AudioLibrary () } lrdf_free_statements(matches); - - XMLNode* state = instant_xml(X_("AudioLibrary"), get_user_ardour_path()); - if (state) { - set_state(*state); - } - scan_paths(); } AudioLibrary::~AudioLibrary () @@ -361,7 +357,7 @@ AudioLibrary::set_paths (vector<string> paths) { sfdb_paths = paths; - add_instant_xml(get_state(), get_user_ardour_path()); + scan_paths (); } vector<string> @@ -478,7 +474,7 @@ AudioLibrary::set_state (const XMLNode& node) } } - sfdb_paths = paths; + set_paths (paths); return 0; } |