[beast: 5/8] BSE: Bus.ensure_output(): simply call an undoable method to connect busses
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/8] BSE: Bus.ensure_output(): simply call an undoable method to connect busses
- Date: Wed, 23 Sep 2015 09:07:11 +0000 (UTC)
commit 8cca05d8d2d116071a7d8f168446a4afe558f656
Author: Tim Janik <timj gnu org>
Date: Fri Sep 18 11:11:03 2015 +0200
BSE: Bus.ensure_output(): simply call an undoable method to connect busses
bse/bsebus.cc | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/bse/bsebus.cc b/bse/bsebus.cc
index 4d64342..20e7399 100644
--- a/bse/bsebus.cc
+++ b/bse/bsebus.cc
@@ -944,17 +944,7 @@ BusImpl::ensure_output ()
if (masterp && self != masterp)
{
BusImpl &master = *masterp->as<BusImpl*>();
- error = bse_bus_connect (masterp, self);
- if (!error)
- {
- // an undo lambda is needed for wrapping object argument references
- UndoDescriptor<BusImpl> bus_descriptor = master.undo_descriptor (*this);
- auto lambda = [bus_descriptor] (BusImpl &master, BseUndoStack *ustack) -> ErrorType {
- BusImpl &bus = master.undo_resolve (bus_descriptor);
- return master.disconnect_bus (bus);
- };
- master.push_undo (__func__, master, lambda);
- }
+ error = master.connect_bus (*this);
}
}
return error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]