projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix video deletion.
[gpl/argeo-suite.git]
/
publishing
/
org.argeo.publishing.ui
/
src
/
org
/
argeo
/
docbook
/
ui
/
DbkVideo.java
diff --git
a/publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkVideo.java
b/publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkVideo.java
index acb266b94746be475536edd404b7d24aead7489a..5c3d0577d5da29b9ed168422487f7a0fe69213f0 100644
(file)
--- a/
publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkVideo.java
+++ b/
publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkVideo.java
@@
-18,6
+18,7
@@
import org.argeo.docbook.DbkAttr;
import org.argeo.docbook.DbkType;
import org.argeo.docbook.DbkUtils;
import org.argeo.eclipse.ui.Selected;
import org.argeo.docbook.DbkType;
import org.argeo.docbook.DbkUtils;
import org.argeo.eclipse.ui.Selected;
+import org.argeo.jcr.Jcr;
import org.argeo.jcr.JcrException;
import org.argeo.naming.NamingUtils;
import org.eclipse.swt.SWT;
import org.argeo.jcr.JcrException;
import org.argeo.naming.NamingUtils;
import org.eclipse.swt.SWT;
@@
-150,9
+151,9
@@
public class DbkVideo extends StyledControl implements SectionPart, NodePart {
public void widgetSelected(SelectionEvent e) {
try {
mediaobject.remove();
public void widgetSelected(SelectionEvent e) {
try {
mediaobject.remove();
-
Composite parent = getParent
();
+
mediaobject.getSession().save
();
dispose();
dispose();
-
parent
.layout(true, true);
+
getSection().getParent()
.layout(true, true);
} catch (RepositoryException e1) {
throw new JcrException("Cannot update " + mediaobject, e1);
}
} catch (RepositoryException e1) {
throw new JcrException("Cannot update " + mediaobject, e1);
}