X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrack.cpp;h=c6c1751d7b2388cdadeb78e9824a1fcb6fb544b5;hb=598631d530a20ba8f4710f45747a9742e149f604;hp=b157b331a12dc9a8106f1720aceeecaddc549e02;hpb=247742fbc1c27bfc9fdef4630afcdc2408cdd550;p=r2c2.git diff --git a/source/libr2c2/track.cpp b/source/libr2c2/track.cpp index b157b33..c6c1751 100644 --- a/source/libr2c2/track.cpp +++ b/source/libr2c2/track.cpp @@ -236,6 +236,9 @@ bool Track::snap_to(Track &other, bool link, float limit) links[i] = &other; other.links[j] = this; layout.create_blocks(*this); + + signal_link_changed.emit(i, &other); + other.signal_link_changed.emit(j, this); } return true; @@ -275,6 +278,7 @@ void Track::break_link(Track &trk) trk.break_link(*this); // XXX Creates the blocks twice layout.create_blocks(*this); + signal_link_changed.emit(i-links.begin(), 0); return; } }