Permalink
Browse files

CVCenter:*removeAtTab: only perform CVCenter:*removeAll if the given …

…tab contains at least one widget

Signed-off-by: Stefan Nussbaumer <st9fan@gmail.com>
  • Loading branch information...
nuss committed Oct 12, 2013
1 parent 17b9a06 commit a462e5870ff872d425ac3baee385d44d33d26e1d
Showing with 2 additions and 2 deletions.
  1. +2 −2 CVCenter/CVCenter.sc
View
@@ -762,8 +762,8 @@ CVCenter {
*removeAtTab { |label|
var wdgts;
- wdgts = this.widgetsAtTab(label);
- this.removeAll(*wdgts);
+ wdgts = this.widgetsAtTab(label.asSymbol);
+ if(wdgts.isEmpty.not, { this.removeAll(*wdgts) });
}
*at { |key|

0 comments on commit a462e58

Please sign in to comment.