libnotificationmanager: Initialize `inhibited` in the private header

wilder-5.25
Fushan Wen 4 years ago
parent b8b722ba19
commit 628f7d7cfa
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA
  1. 1
      libnotificationmanager/abstractnotificationsmodel.cpp
  2. 2
      libnotificationmanager/abstractnotificationsmodel_p.h

@ -26,7 +26,6 @@ using namespace NotificationManager;
AbstractNotificationsModel::Private::Private(AbstractNotificationsModel *q)
: q(q)
, inhibited(false)
, lastRead(QDateTime::currentDateTimeUtc())
{
pendingRemovalTimer.setSingleShot(true);

@ -41,7 +41,7 @@ public:
QVector<uint /*notificationId*/> pendingRemovals;
QTimer pendingRemovalTimer;
bool inhibited; // "Do not disturb" mode
bool inhibited = false; // "Do not disturb" mode
QDateTime lastRead;
};

Loading…
Cancel
Save