@ -231,6 +231,14 @@ void UBGraphicsWidgetItem::removeAllDatastoreEntries()
void UBGraphicsWidgetItem::remove()
{
if (mDelegate)
mDelegate->remove();
}
void UBGraphicsWidgetItem::removeScript()
if (mWebKitWidget && mWebKitWidget->page() && mWebKitWidget->page()->mainFrame())
@ -62,6 +62,8 @@ class UBGraphicsWidgetItem : public UBGraphicsProxyWidget
void removeAllDatastoreEntries();
virtual void remove();
void removeScript();
protected:
@ -105,7 +105,6 @@ UBGraphicsWidgetItem* UBGraphicsWidgetItemDelegate::delegated()
void UBGraphicsWidgetItemDelegate::remove(bool canundo)
delegated()->remove();
delegated()->removeScript();
UBGraphicsItemDelegate::remove(canundo);