fixup: use initializer for contextMenuVisibleManual

This commit is contained in:
Christian Kamm 2018-06-18 09:48:30 +02:00 committed by Camila San
parent 9330d2b178
commit 14df7a3273
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4
2 changed files with 4 additions and 8 deletions

View file

@ -62,16 +62,12 @@ const char propertyAccountC[] = "oc_account";
ownCloudGui::ownCloudGui(Application *parent)
: QObject(parent)
, _tray(0)
,
#if defined(Q_OS_MAC)
_settingsDialog(new SettingsDialogMac(this))
,
, _settingsDialog(new SettingsDialogMac(this))
#else
_settingsDialog(new SettingsDialog(this))
,
, _settingsDialog(new SettingsDialog(this))
#endif
_logBrowser(0)
, _contextMenuVisibleManual(false)
, _logBrowser(0)
#ifdef WITH_LIBCLOUDPROVIDERS
, _bus(QDBusConnection::sessionBus())
#endif

View file

@ -144,7 +144,7 @@ private:
// and aboutToHide. Unfortunately aboutToHide isn't reliable everywhere
// so this only gets used with _workaroundManualVisibility (when the tray's
// isVisible() is unreliable)
bool _contextMenuVisibleManual;
bool _contextMenuVisibleManual = false;
#ifdef WITH_LIBCLOUDPROVIDERS
QDBusConnection _bus;