summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/CommonBaseI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBaseI.java')
-rwxr-xr-xjava/src/IceGrid/TreeNode/CommonBaseI.java21
1 files changed, 8 insertions, 13 deletions
diff --git a/java/src/IceGrid/TreeNode/CommonBaseI.java b/java/src/IceGrid/TreeNode/CommonBaseI.java
index 07c24dcf767..19ad6087228 100755
--- a/java/src/IceGrid/TreeNode/CommonBaseI.java
+++ b/java/src/IceGrid/TreeNode/CommonBaseI.java
@@ -230,7 +230,14 @@ abstract class CommonBaseI implements CommonBase
TreePath parentPath = getParent().getPath();
if(destroy())
{
- _model.setSelectionPath(parentPath);
+ if(parentPath.getPathCount() > 1)
+ {
+ _model.setSelectionPath(parentPath);
+ }
+ else
+ {
+ // TODO: show splash
+ }
}
}
public void substituteVars()
@@ -365,18 +372,6 @@ abstract class CommonBaseI implements CommonBase
}
}
- protected CommonBaseI(CommonBaseI o)
- {
- //
- // Not attached to any tree yet
- //
- _path = null;
- _parent = null;
-
- _id = o._id;
- _model = o._model;
- }
-
public Application getApplication()
{
if(_path == null || _path.getPathCount() < 2)