trigger motif update from loadMotifList
[mussa.git] / qui / MussaWindow.cpp
index 09d6ee9ba891b19fe06e6d1b76fc5647817acfb7..09cdef5093b76bc884e5599cc03758f10de3b3fc 100644 (file)
@@ -71,6 +71,7 @@ MussaWindow::MussaWindow(MussaRef analysis_, QWidget *parent) :
   // well updatePosition isn't quite right as we really just need
   // to call update()
   connect(this, SIGNAL(changedAnnotations()), browser, SLOT(update()));
+  connect(this, SIGNAL(changedMotifs()), this, SLOT(updateAnnotations()));
 
   //mussaViewTB->addAction(toggleMotifsAction);
   mussaViewTB->addWidget(zoom);
@@ -440,6 +441,7 @@ void MussaWindow::loadMotifList()
     fs::path converted_path(path.toStdString(), fs::native);
     analysis->load_motifs(converted_path);
     default_dir = converted_path.branch_path();
+    emit changedMotifs();
   } catch (runtime_error e) {
     QString msg("Unable to load ");
     msg += path;