- Timestamp:
- Sep 30, 2021 7:17:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp
r91236 r91501 175 175 QUuid UINotificationCenter::append(UINotificationObject *pObject) 176 176 { 177 /* Sanity check: */ 177 178 AssertPtrReturn(m_pModel, QUuid()); 179 AssertPtrReturn(pObject, QUuid()); 180 181 /* Is object critical? */ 182 const bool fCritical = pObject->isCritical(); 183 /* Is object progress? */ 184 const bool fProgress = pObject->inherits("UINotificationProgress"); 185 186 /* Handle object. Be aware it can be deleted during handling! */ 178 187 const QUuid uId = m_pModel->appendObject(pObject); 179 188 180 189 /* If object is critical and center isn't opened yet: */ 181 if (!m_pOpenButton->isChecked() && pObject->isCritical())190 if (!m_pOpenButton->isChecked() && fCritical) 182 191 { 183 192 /* We should delay progresses for a bit: */ 184 const int iDelay = pObject->inherits("UINotificationProgress")? 2000 : 0;193 const int iDelay = fProgress ? 2000 : 0; 185 194 /* We should issue an open request: */ 186 195 AssertPtrReturn(m_pTimerOpen, uId);
Note:
See TracChangeset
for help on using the changeset viewer.