+ // if our current analysis doesn't match the one in our
+ // model, we probalby changed the analysis.
+ // so delete and restart
+ // DET 2007mar30 (can this if statement ever be true? it doesn't look
+ // like there's a way to change the analysis?)
+ if (model and model->getAnalysis() != analysis) {
+ delete model;
+ }
+
+ // if we don't have a model, create a new one
+ if (not model) {
+ model = new MotifModel(analysis);
+ }
+ table->setModel(model);
+ updateView();