From d1151e609db90ff6713b74addd4980e02bf00191 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Jan 2007 05:18:50 +0000 Subject: Fix crash when clicking currently active breadcrumb. git-svn-id: http://svn.drobilla.net/lad/ingen@236 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/BreadCrumb.h | 2 +- src/progs/ingenuity/BreadCrumbBox.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/progs') diff --git a/src/progs/ingenuity/BreadCrumb.h b/src/progs/ingenuity/BreadCrumb.h index a8242672..dca10788 100644 --- a/src/progs/ingenuity/BreadCrumb.h +++ b/src/progs/ingenuity/BreadCrumb.h @@ -69,7 +69,7 @@ public: } private: - Path _path; + Path _path; SharedPtr _view; }; diff --git a/src/progs/ingenuity/BreadCrumbBox.cpp b/src/progs/ingenuity/BreadCrumbBox.cpp index eca8a761..f2835d18 100644 --- a/src/progs/ingenuity/BreadCrumbBox.cpp +++ b/src/progs/ingenuity/BreadCrumbBox.cpp @@ -160,8 +160,7 @@ BreadCrumbBox::breadcrumb_clicked(BreadCrumb* crumb) _enable_signal = false; if (!crumb->get_active()) { - assert(_active_path == crumb->path()); - // Tried to turn off the current active button, bad user! + // Tried to turn off the current active button, bad user, no cookie crumb->set_active(true); } else { signal_patch_selected.emit(crumb->path(), crumb->view()); -- cgit v1.2.1