Add window titles
[mussa.git] / qui / motif_editor / MotifEditor.cpp
index e5e559eeb04bcbea5b5abe51be3ac5491993d5c6..93178d673faf069bfea426f025f3ca85c47c8436 100644 (file)
@@ -79,10 +79,11 @@ void MotifEditor::updateMotifs()
 
 void MotifEditor::updateTitle() 
 {
-  QString title("Motif Editor: ");
-  title.append(analysis->get_name().c_str());
-  setWindowTitle(title);
-  
+  std::string title("Motif Editor: ");
+  if (analysis) {
+    title += analysis->get_title();
+  }
+  setWindowTitle(title.c_str());
 }
 
 void MotifEditor::updateView()