projects
/
potlatch2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a22f489
)
Prevent error if + pressed while nothing is selected
author
Andy Allan
<gravitystorm@gmail.com>
Fri, 3 Sep 2010 14:08:35 +0000
(14:08 +0000)
committer
Andy Allan
<gravitystorm@gmail.com>
Fri, 3 Sep 2010 14:08:35 +0000
(14:08 +0000)
net/systemeD/potlatch2/TagViewer.mxml
patch
|
blob
|
history
diff --git
a/net/systemeD/potlatch2/TagViewer.mxml
b/net/systemeD/potlatch2/TagViewer.mxml
index
213c0d1
..
244e1d4
100644
(file)
--- a/
net/systemeD/potlatch2/TagViewer.mxml
+++ b/
net/systemeD/potlatch2/TagViewer.mxml
@@
-562,7
+562,7
@@
}
public function addNewTag():void {
- if (stack.selectedChild!=advancedContainer) { return; }
+ if (stack.selectedChild!=advancedContainer
|| selectedEntity == null
) { return; }
var newKey:String = "(new tag)";
var newTag:Tag = new Tag(selectedEntity, newKey, "(new value)");
tagDataProvider.addItem(newTag);