Fix comparing int with bool (#6637)
Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
This commit is contained in:
@@ -80,7 +80,7 @@ void PatternClip::loadSettings(const QDomElement& element)
|
||||
}
|
||||
changeLength( element.attribute( "len" ).toInt() );
|
||||
setStartTimeOffset(element.attribute("off").toInt());
|
||||
if( element.attribute( "muted" ).toInt() != isMuted() )
|
||||
if (static_cast<bool>(element.attribute("muted").toInt()) != isMuted())
|
||||
{
|
||||
toggleMute();
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ void MidiClip::loadSettings( const QDomElement & _this )
|
||||
{
|
||||
movePosition( _this.attribute( "pos" ).toInt() );
|
||||
}
|
||||
if( _this.attribute( "muted" ).toInt() != isMuted() )
|
||||
if (static_cast<bool>(_this.attribute("muted").toInt()) != isMuted())
|
||||
{
|
||||
toggleMute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user