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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user