From 6de97716e8cd4613a7e42429dba348b515e188d8 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Oct 03 2017 08:18:31 +0000 Subject: fix releasing cell selection behavior (#1501) --- diff --git a/toonz/sources/toonz/filmstrip.cpp b/toonz/sources/toonz/filmstrip.cpp index 0122762..989a442 100644 --- a/toonz/sources/toonz/filmstrip.cpp +++ b/toonz/sources/toonz/filmstrip.cpp @@ -384,7 +384,7 @@ void FilmstripFrames::hideEvent(QHideEvent *) { TApp *app = TApp::instance(); // cambiamenti al livello - disconnect(app->getCurrentLevel()); + disconnect(app->getCurrentLevel(), 0, this, 0); // al frame corrente disconnect(app->getCurrentFrame(), SIGNAL(frameSwitched()), this, @@ -1007,7 +1007,9 @@ void FilmstripFrames::onFrameSwitched() { if (index >= 0) { exponeFrame(index); // clear selection and select only the destination frame - select(index, ONLY_SELECT); + TFilmstripSelection *fsSelection = + dynamic_cast(TSelection::getCurrent()); + if (fsSelection) select(index, ONLY_SELECT); } update(); }