Skip to content
Snippets Groups Projects
Commit f60e7117 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Project: Fix cleanStateChanged emiting

parent fbe1325b
No related branches found
No related tags found
No related merge requests found
......@@ -334,8 +334,7 @@ Project::cleanChanged( bool val )
// This doesn't have to be different since we can force needSave = true when loading
// a backup project file. This definitely needs testing though
m_isClean = val;
if ( m_libraryCleanState == m_isClean )
emit cleanStateChanged( val );
emit cleanStateChanged( m_libraryCleanState == true && m_isClean == true );
}
void
......@@ -343,8 +342,7 @@ Project::libraryCleanChanged(bool val)
{
Q_ASSERT( m_libraryCleanState != val);
m_libraryCleanState = val;
if ( m_libraryCleanState == m_isClean )
emit cleanStateChanged( val );
emit cleanStateChanged( m_libraryCleanState == true && m_isClean == true );
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment