touch "been-here-before" file even if user didn't modify any of teh default configuration
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 14 Mar 2013 19:11:31 +0000 (15:11 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 14 Mar 2013 19:11:31 +0000 (15:11 -0400)
gtk2_ardour/startup.cc

index 208364447cb56826cba83b3e1e48ea588b0770d1..a0ae965f07759651c0e9523b750504b461bb3a55 100644 (file)
@@ -684,12 +684,18 @@ ArdourStartup::on_apply ()
 
                Config->set_use_monitor_bus (use_monitor_section_button.get_active());
 
-               /* "touch" the been-here-before path now that we're about to save Config */
-               ofstream fout (been_here_before_path().c_str());
-               
                Config->save_state ();
+
        }
 
+       {
+               /* "touch" the been-here-before path now we've successfully
+                  made it through the first time setup (at least)
+               */
+               ofstream fout (been_here_before_path().c_str());
+
+       }
+               
        _response = RESPONSE_OK;
        gtk_main_quit ();
 }