Changeset 90387 in vbox
- Timestamp:
- Jul 29, 2021 7:56:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp
r90290 r90387 58 58 bool UINotificationProgress::isCancelable() const 59 59 { 60 return m_pTask ->isCancelable();60 return m_pTask ? m_pTask->isCancelable() : false; 61 61 } 62 62 63 63 QString UINotificationProgress::error() const 64 64 { 65 return m_pTask ->errorMessage();65 return m_pTask ? m_pTask->errorMessage() : QString(); 66 66 } 67 67 … … 87 87 { 88 88 /* Cancel task: */ 89 m_pTask->cancel(); 89 if (m_pTask) 90 m_pTask->cancel(); 90 91 /* Call to base-class: */ 91 92 UINotificationObject::close();
Note:
See TracChangeset
for help on using the changeset viewer.