mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 10:36:34 +01:00
fix region "valid-transient" property
This commit is contained in:
parent
014f8a582f
commit
ffe06f7d3e
2 changed files with 11 additions and 6 deletions
|
|
@ -1284,6 +1284,10 @@ Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_c
|
|||
}
|
||||
}
|
||||
|
||||
// saved property is invalid, region-transients are not saved
|
||||
if (_transients.size() == 0){
|
||||
_valid_transients = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,15 +173,16 @@ Source::has_been_analysed() const
|
|||
void
|
||||
Source::set_been_analysed (bool yn)
|
||||
{
|
||||
{
|
||||
if (yn) {
|
||||
if (0 == load_transients (get_transients_path())) {
|
||||
yn = false;
|
||||
}
|
||||
}
|
||||
if (yn != _analysed); {
|
||||
Glib::Threads::Mutex::Lock lm (_analysis_lock);
|
||||
_analysed = yn;
|
||||
}
|
||||
|
||||
if (yn) {
|
||||
load_transients (get_transients_path());
|
||||
AnalysisChanged(); // EMIT SIGNAL
|
||||
}
|
||||
AnalysisChanged(); // EMIT SIGNAL
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue