ExportProjectDialog: fixed non-multi-track export once more
There was another bug causing LMMS to crash when using regular export feature. Thanks to Mikobuntu for reporting this bug.
This commit is contained in:
@@ -146,21 +146,24 @@ void exportProjectDialog::closeEvent( QCloseEvent * _ce )
|
||||
|
||||
|
||||
|
||||
void exportProjectDialog::popRender() {
|
||||
|
||||
track* render_track = m_tracksToRender.back();
|
||||
m_tracksToRender.pop_back();
|
||||
|
||||
// Set must states for song tracks
|
||||
for( TrackVector::ConstIterator it = m_unmuted.begin(); it != m_unmuted.end(); ++it )
|
||||
void exportProjectDialog::popRender()
|
||||
{
|
||||
if( m_multiExport && m_tracksToRender.isEmpty() == false )
|
||||
{
|
||||
if( (*it) == render_track )
|
||||
track* renderTrack = m_tracksToRender.back();
|
||||
m_tracksToRender.pop_back();
|
||||
|
||||
// Set must states for song tracks
|
||||
for( TrackVector::ConstIterator it = m_unmuted.begin(); it != m_unmuted.end(); ++it )
|
||||
{
|
||||
(*it)->setMuted( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
(*it)->setMuted( true );
|
||||
if( (*it) == renderTrack )
|
||||
{
|
||||
(*it)->setMuted( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
(*it)->setMuted( true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,6 +174,8 @@ void exportProjectDialog::popRender() {
|
||||
render( r );
|
||||
}
|
||||
|
||||
|
||||
|
||||
void exportProjectDialog::multiRender()
|
||||
{
|
||||
m_dirName = m_fileName;
|
||||
|
||||
Reference in New Issue
Block a user