summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-07 05:18:50 +0000
committerDavid Robillard <d@drobilla.net>2007-01-07 05:18:50 +0000
commitd1151e609db90ff6713b74addd4980e02bf00191 (patch)
treef6052c98c57d23e6e4d7cd67e14e1f77b80c324d
parent0637b4eced87c74488a7783902d870b23e2d08fb (diff)
downloadingen-d1151e609db90ff6713b74addd4980e02bf00191.tar.gz
ingen-d1151e609db90ff6713b74addd4980e02bf00191.tar.bz2
ingen-d1151e609db90ff6713b74addd4980e02bf00191.zip
Fix crash when clicking currently active breadcrumb.
git-svn-id: http://svn.drobilla.net/lad/ingen@236 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/progs/ingenuity/BreadCrumb.h2
-rw-r--r--src/progs/ingenuity/BreadCrumbBox.cpp3
2 files changed, 2 insertions, 3 deletions
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<PatchView> _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());