Tray: Fix crash on startup for non-OSX oses

This commit is contained in:
Christian Kamm 2016-10-07 13:32:42 +02:00
parent f36d4562a1
commit 91b6b88883

View file

@ -67,7 +67,7 @@ ownCloudGui::ownCloudGui(Application *parent) :
_tray->setParent(this);
// for the beginning, set the offline icon until the account was verified
_tray->setIcon( Theme::instance()->folderOfflineIcon(true, contextMenuVisible()));
_tray->setIcon( Theme::instance()->folderOfflineIcon(/*systray?*/ true, /*currently visible?*/ false));
connect(_tray.data(), SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
SLOT(slotTrayClicked(QSystemTrayIcon::ActivationReason)));