mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
easy rigging to force directories. Uses mode 0775 because that seems to be what everyhting else in libarodur and gtk2ardour uses
This commit is contained in:
parent
11bdbd6844
commit
a6a5821f21
1 changed files with 11 additions and 0 deletions
|
|
@ -256,6 +256,17 @@ bool MixerSnapshotDialog::bootstrap_display_and_model(Gtkmm2ext::DnDTreeView<str
|
|||
|
||||
void MixerSnapshotDialog::new_snapshot(bool global)
|
||||
{
|
||||
if(!_session)
|
||||
return;
|
||||
|
||||
string path = Glib::build_filename(user_config_directory(-1), "mixer_snapshots/");
|
||||
if(!Glib::file_test(path.c_str(), Glib::FILE_TEST_EXISTS & Glib::FILE_TEST_IS_DIR))
|
||||
::g_mkdir(path.c_str(), 0775);
|
||||
|
||||
path = Glib::build_filename(_session->session_directory().root_path(), "mixer_snapshots/");
|
||||
if(!Glib::file_test(path.c_str(), Glib::FILE_TEST_EXISTS & Glib::FILE_TEST_IS_DIR))
|
||||
::g_mkdir(path.c_str(), 0775);
|
||||
|
||||
MixerSnapshot* snap = new MixerSnapshot(_session);
|
||||
|
||||
Prompter prompt(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue