Make Song::setModified more compact

Implement a comment from a code review by pulling condition of the
second if clause into the first one.
This commit is contained in:
Michael Gregorius
2017-12-18 21:01:01 +01:00
parent 9acff89ad3
commit ab2cc42eea

View File

@@ -453,13 +453,10 @@ void Song::processAutomations(const TrackList &tracklist, MidiTime timeStart, fp
void Song::setModified(bool value)
{
if( !m_loadingProject )
if( !m_loadingProject && m_modified != value)
{
if (m_modified != value)
{
m_modified = value;
emit modified();
}
m_modified = value;
emit modified();
}
}