LogWarning("[DB Update Task] Aborting... (DB Clean)");
Try
{
- WidgetDAO::restoreUpdateWidget(m_backAppId,
- m_context.widgetConfig.tzAppid);
+ if (m_context.isUpdateMode) {
+ WidgetDAO::restoreUpdateWidget(m_backAppId,
+ m_context.widgetConfig.tzAppid);
+ } else {
+ WidgetDAO::unregisterWidget(m_context.widgetConfig.tzAppid);
+ }
LogDebug("Cleaning DB successful!");
}
Catch(DPL::DB::SqlConnection::Exception::Base)