diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-20 20:47:57 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-20 20:47:57 +0100 |
commit | 3a50975c3dae3759d9e7f4fdcf9a39ed4e3e69e7 (patch) | |
tree | 5ad67653847068eb3d8672c63cc2aeb446e00285 /gtk2_ardour/ardour_ui.cc | |
parent | 5f5bdca15bb86d09800dfaa53b6a57addf35eb37 (diff) |
First-time startup logic update.
When *not* copying old config, Ardour should display the "first time"
dialog.
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index bbb27a15d0..e507370513 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -65,6 +65,7 @@ #include "pbd/localtime_r.h" #include "pbd/pthread_utils.h" #include "pbd/replace_all.h" +#include "pbd/scoped_file_descriptor.h" #include "pbd/xml++.h" #include "gtkmm2ext/application.h" @@ -324,6 +325,10 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir) UIConfiguration::instance().post_gui_init (); if (ARDOUR::handle_old_configuration_files (boost::bind (ask_about_configuration_copy, _1, _2, _3))) { + { + /* "touch" the been-here-before path now that config has been migrated */ + PBD::ScopedFileDescriptor fout (g_open (been_here_before_path ().c_str(), O_CREAT|O_TRUNC|O_RDWR, 0666)); + } MessageDialog msg (string_compose (_("Your configuration files were copied. You can now restart %1."), PROGRAM_NAME), true); msg.run (); /* configuration was modified, exit immediately */ |