projects
/
mussa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eddfcb
)
subanalysis menu option wont crash mussa
author
Diane Trout
<diane@caltech.edu>
Fri, 24 Feb 2006 00:47:32 +0000
(
00:47
+0000)
committer
Diane Trout
<diane@caltech.edu>
Fri, 24 Feb 2006 00:47:32 +0000
(
00:47
+0000)
gui/ConnWindow.cxx
patch
|
blob
|
history
diff --git
a/gui/ConnWindow.cxx
b/gui/ConnWindow.cxx
index 75a5ad59b12c5c8553e62a216038a242504b4ef4..f4638b423a6198f27951b1033b0d6020422187aa 100644
(file)
--- a/
gui/ConnWindow.cxx
+++ b/
gui/ConnWindow.cxx
@@
-154,6
+154,11
@@
ConnWindow::real_subana_cb()
{
string subana_name;
+ if (an_analysis == 0 || an_analysis->the_seqs.size() == 0) {
+ fl_message("please load an analysis before creating a subanalysis");
+ return;
+ }
+
sub_analysis = new Mussa();
subana_win = new SubAnalysisWindow(500,400,"Sub Analysis Setup", sub_analysis,
an_analysis->the_seqs);