small change

This commit is contained in:
Patrick von Reth 2013-11-25 12:48:22 +01:00
parent 5a864285e4
commit 32bc5583be
2 changed files with 4 additions and 4 deletions

View File

@ -247,11 +247,11 @@ bool SnoreCore::setPrimaryNotificationBackend()
return false;
}
const QString SnoreCore::primaryNotificationBackend()
const QString SnoreCore::primaryNotificationBackend() const
{
if(m_notificationBackend == NULL)
if(m_notificationBackend.isNull())
{
return QString();
return QString::null;
}
return m_notificationBackend->name();
}

View File

@ -61,7 +61,7 @@ public:
bool setPrimaryNotificationBackend( const QString &backend );
bool setPrimaryNotificationBackend();
const QString primaryNotificationBackend();
const QString primaryNotificationBackend() const;
QSystemTrayIcon *trayIcon();
Notification getActiveNotificationByID(uint id);