mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
GCC suggests parens to make the logic obvious, so make it nice and obvious
This commit is contained in:
@@ -114,8 +114,12 @@ bool
|
|||||||
CategoryAddItem::willAcceptDrag( const QMimeData* data ) const
|
CategoryAddItem::willAcceptDrag( const QMimeData* data ) const
|
||||||
{
|
{
|
||||||
if ( ( m_categoryType == SourcesModel::PlaylistsCategory || m_categoryType == SourcesModel::StationsCategory ) &&
|
if ( ( m_categoryType == SourcesModel::PlaylistsCategory || m_categoryType == SourcesModel::StationsCategory ) &&
|
||||||
|
(
|
||||||
data->hasFormat( "application/tomahawk.query.list" ) ||
|
data->hasFormat( "application/tomahawk.query.list" ) ||
|
||||||
data->hasFormat( "application/tomahawk.result.list" ) ) {
|
data->hasFormat( "application/tomahawk.result.list" )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user