mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 11:04:01 +02:00
Pointer guard
This commit is contained in:
@@ -87,6 +87,9 @@ XmppAccount::isAuthenticated() const
|
|||||||
Account::ConnectionState
|
Account::ConnectionState
|
||||||
XmppAccount::connectionState() const
|
XmppAccount::connectionState() const
|
||||||
{
|
{
|
||||||
|
if ( m_xmppSipPlugin.isNull() )
|
||||||
|
return Account::Disconnected;
|
||||||
|
|
||||||
return m_xmppSipPlugin.data()->connectionState();
|
return m_xmppSipPlugin.data()->connectionState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user