GUI: merge: set default track column to »no« for disabled tracks

Other columns like e.g. the language aren't set to empty when a track is
disabled either. So let's be consistent here.

See #1353.
This commit is contained in:
Moritz Bunkus 2015-09-05 15:39:46 +02:00
parent feff8a2bdb
commit e2f88798ab

View File

@ -614,7 +614,10 @@ TrackModel::updateEffectiveDefaultTrackFlags() {
// Step one: reset all flags to undefined. Do this for all tracks,
// not just for regular & enabled ones.
for (auto &track : *m_tracks)
track->m_effectiveDefaultTrackFlag = boost::none;
if (track->m_muxThis)
track->m_effectiveDefaultTrackFlag = boost::none;
else
track->m_effectiveDefaultTrackFlag = false;
// Step two: check for explicitly set flags (set to yes/no). These
// take precedence over everything else.