diff options
author | Robin Gareus <robin@gareus.org> | 2013-03-21 21:33:02 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-03-21 21:33:02 +0100 |
commit | 268553ecd471e31d0a1a3976f02389260130e41d (patch) | |
tree | e66d6775992b8dfb39361550dde915a7b80d7b58 /gtk2_ardour/editor_regions.cc | |
parent | d99b5dfa37c7248e24a0266188752dfa6c9bb3f6 (diff) |
honor CTRL modifier when drag/drop importing files (copy vs embed)
Diffstat (limited to 'gtk2_ardour/editor_regions.cc')
-rw-r--r-- | gtk2_ardour/editor_regions.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc index 16c401b90e..ad5263d1d1 100644 --- a/gtk2_ardour/editor_regions.cc +++ b/gtk2_ardour/editor_regions.cc @@ -1233,7 +1233,9 @@ EditorRegions::drag_data_received (const RefPtr<Gdk::DragContext>& context, if (_editor->convert_drop_to_paths (paths, context, x, y, data, info, time) == 0) { framepos_t pos = 0; - if (Profile->get_sae() || Config->get_only_copy_imported_files()) { + bool copy = ((context->get_actions() & (Gdk::ACTION_COPY | Gdk::ACTION_LINK | Gdk::ACTION_MOVE)) == Gdk::ACTION_COPY); + + if (Profile->get_sae() || Config->get_only_copy_imported_files() || copy) { _editor->do_import (paths, Editing::ImportDistinctFiles, Editing::ImportAsRegion, SrcBest, pos); } else { _editor->do_embed (paths, Editing::ImportDistinctFiles, ImportAsRegion, pos); |