Do not select re-imported tracks
Stem-export defaults to use selected tracks. This retains the selection, so focus remains. Repeat stem export will use previously exported tracks if the selection is empty, or the current selection (again).
This commit is contained in:
parent
7c2cb31b63
commit
b11f76d748
@ -438,6 +438,7 @@ Editor::Editor ()
|
||||
, autoscroll_cnt (0)
|
||||
, autoscroll_widget (0)
|
||||
, show_gain_after_trim (false)
|
||||
, _no_not_select_reimported_tracks (false)
|
||||
, selection_op_cmd_depth (0)
|
||||
, selection_op_history_it (0)
|
||||
, no_save_instant (false)
|
||||
@ -5742,7 +5743,7 @@ Editor::add_stripables (StripableList& sl)
|
||||
* than just VCAs
|
||||
*/
|
||||
|
||||
if (!from_scratch && !new_selection.empty()) {
|
||||
if (!from_scratch && !_no_not_select_reimported_tracks && !new_selection.empty()) {
|
||||
selection->set (new_selection);
|
||||
begin_selection_op_history();
|
||||
}
|
||||
|
@ -2133,6 +2133,8 @@ private:
|
||||
|
||||
/* audio export */
|
||||
|
||||
bool _no_not_select_reimported_tracks;
|
||||
|
||||
enum BounceTarget {
|
||||
NewSource,
|
||||
NewTrigger,
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "pbd/gstdio_compat.h"
|
||||
|
||||
#include "pbd/pthread_utils.h"
|
||||
#include "pbd/unwind.h"
|
||||
|
||||
#include "ardour/audio_track.h"
|
||||
#include "ardour/audiofilesource.h"
|
||||
@ -83,6 +84,7 @@ void
|
||||
Editor::stem_export ()
|
||||
{
|
||||
StemExportDialog dialog (*this);
|
||||
PBD::Unwinder<bool> uw (_no_not_select_reimported_tracks, true);
|
||||
dialog.set_session (_session);
|
||||
dialog.run();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user