fix crash

Change-Id: Iec8707bef818626ee4b2ec32c1f924ccc0122548
This commit is contained in:
石博文 2016-07-22 15:27:21 +08:00 committed by Hualet Wang
parent e35d7b5483
commit 2710ac5256

View File

@ -49,7 +49,9 @@ QWidget *SystemTrayPlugin::itemWidget(const QString &itemKey)
QWidget *SystemTrayPlugin::itemPopupApplet(const QString &itemKey)
{
Q_ASSERT(itemKey == FASHION_MODE_ITEM);
if (itemKey != FASHION_MODE_ITEM)
return nullptr;
Q_ASSERT(m_trayList.size());
updateTipsContent();