projects
/
mussa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keep motifs after closing window
[mussa.git]
/
qui
/
MussaWindow.cpp
diff --git
a/qui/MussaWindow.cpp
b/qui/MussaWindow.cpp
index 883703fd3be49d8867128640dbad020699262bf5..5d934fa36d637536fa33b03ccac033cdaa5c8f72 100644
(file)
--- a/
qui/MussaWindow.cpp
+++ b/
qui/MussaWindow.cpp
@@
-324,6
+324,11
@@
void MussaWindow::about()
void MussaWindow::clear()
{
void MussaWindow::clear()
{
+ if (motif_editor != 0) {
+ motif_editor->hide();
+ delete motif_editor;
+ }
+
aligned_windows.clear();
browser->clear();
}
aligned_windows.clear();
browser->clear();
}
@@
-459,13
+464,11
@@
bool MussaWindow::isClearingAnalysisSafe()
void MussaWindow::editMotifs()
{
void MussaWindow::editMotifs()
{
- if (motif_editor != 0) {
- motif_editor->hide();
- delete motif_editor;
+ if (not motif_editor) {
+ motif_editor = new MotifEditor(analysis);
+ connect(motif_editor, SIGNAL(changedMotifs()),
+ this, SLOT(updateAnnotations()));
}
}
- motif_editor = new MotifEditor(analysis);
- connect(motif_editor, SIGNAL(changedMotifs()),
- this, SLOT(updateAnnotations()));
motif_editor->show();
}
motif_editor->show();
}