Commit d5b863e2 authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent e50be9f8
......@@ -40,7 +40,6 @@ UnityServiceManager *UnityServiceManager::instance()
UnityServiceManager::UnityServiceManager(QObject *parent)
: QObject(parent)
, mUnityServiceWatcher(new QDBusServiceWatcher(this))
, m_unread(0)
{
initUnity();
}
......@@ -52,8 +51,10 @@ UnityServiceManager::~UnityServiceManager()
void UnityServiceManager::slotSetUnread(int unread)
{
m_unread = unread;
updateCount();
if (m_unread != unread) {
m_unread = unread;
updateCount();
}
}
void UnityServiceManager::updateCount()
......
......@@ -42,7 +42,7 @@ private:
void initUnity();
QDBusServiceWatcher *mUnityServiceWatcher = nullptr;
static UnityServiceManager *mInstance;
int m_unread;
int m_unread = 0;
bool mUnityServiceAvailable = false;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment