Commit de832d01 authored by ivan.ilyin's avatar ivan.ilyin

SANKORE-274 fix CUT command for W3CWigdet items

parent f6c6c2b4
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment