From: Diane Trout Date: Wed, 4 Oct 2006 01:13:28 +0000 (+0000) Subject: trigger motif update from loadMotifList X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=b031a73800b51b3acbc9cafa812252e7d28d1312 trigger motif update from loadMotifList --- diff --git a/qui/MussaWindow.cpp b/qui/MussaWindow.cpp index 09d6ee9..09cdef5 100644 --- a/qui/MussaWindow.cpp +++ b/qui/MussaWindow.cpp @@ -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; diff --git a/qui/MussaWindow.hpp b/qui/MussaWindow.hpp index 8371c66..ce34717 100644 --- a/qui/MussaWindow.hpp +++ b/qui/MussaWindow.hpp @@ -93,6 +93,7 @@ public slots: signals: void changedAnnotations(); + void changedMotifs(); protected: //! shared_ptr to our analysis