fixed subscribe/unsubscribe-warnings
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1365 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -326,8 +326,8 @@ void midiALSASeq::subscribeReadablePort( midiPort * _port,
|
||||
const QString & _dest,
|
||||
bool _subscribe )
|
||||
{
|
||||
if( m_portIDs.contains( _port ) == FALSE ||
|
||||
_port->inputEnabled() == FALSE )
|
||||
if( _subscribe &&( m_portIDs.contains( _port ) == FALSE ||
|
||||
_port->inputEnabled() == FALSE ) )
|
||||
{
|
||||
printf( "port %s can't be (un)subscribed!\n",
|
||||
_port->name().toAscii().constData() );
|
||||
@@ -367,8 +367,8 @@ void midiALSASeq::subscribeWriteablePort( midiPort * _port,
|
||||
const QString & _dest,
|
||||
bool _subscribe )
|
||||
{
|
||||
if( m_portIDs.contains( _port ) == FALSE ||
|
||||
_port->outputEnabled() == FALSE )
|
||||
if( _subscribe && ( m_portIDs.contains( _port ) == FALSE ||
|
||||
_port->outputEnabled() == FALSE ) )
|
||||
{
|
||||
printf( "port %s can't be (un)subscribed!\n",
|
||||
_port->name().toAscii().constData() );
|
||||
|
||||
@@ -202,7 +202,7 @@ void midiWinMM::subscribeReadablePort( midiPort * _port,
|
||||
const QString & _dest,
|
||||
bool _subscribe )
|
||||
{
|
||||
if( _port->inputEnabled() == FALSE )
|
||||
if( _subscribe && _port->inputEnabled() == FALSE )
|
||||
{
|
||||
printf( "port %s can't be (un)subscribed!\n",
|
||||
_port->name().toAscii().constData() );
|
||||
@@ -226,7 +226,7 @@ void midiWinMM::subscribeWriteablePort( midiPort * _port,
|
||||
const QString & _dest,
|
||||
bool _subscribe )
|
||||
{
|
||||
if( _port->outputEnabled() == FALSE && _subscribe == FALSE )
|
||||
if( _subscribe && _port->outputEnabled() == FALSE )
|
||||
{
|
||||
printf( "port %s can't be (un)subscribed!\n",
|
||||
_port->name().toAscii().constData() );
|
||||
|
||||
Reference in New Issue
Block a user