trigger motif update from loadMotifList
authorDiane Trout <diane@caltech.edu>
Wed, 4 Oct 2006 01:13:28 +0000 (01:13 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 4 Oct 2006 01:13:28 +0000 (01:13 +0000)
qui/MussaWindow.cpp
qui/MussaWindow.hpp

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;
index 8371c66473823b2d64b5ae64944cb2815b24a74f..ce34717386cd35091ce532e8a5268c997ead4bcb 100644 (file)
@@ -93,6 +93,7 @@ public slots:
 
 signals:
   void changedAnnotations();
+  void changedMotifs();
 
 protected:
   //! shared_ptr to our analysis