diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cpp index 2425c38..589e040 100644 --- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp +++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp @@ -2094,9 +2094,10 @@ ToonzRasterBrushToolNotifier::ToonzRasterBrushToolNotifier( bool ret; ret = connect(paletteHandle, SIGNAL(colorStyleChanged(bool)), this, SLOT(onColorStyleChanged())); - assert(ret); - ret = connect(paletteHandle, SIGNAL(colorStyleSwitched()), this, - SLOT(onColorStyleChanged())); + ret = ret && connect(paletteHandle, SIGNAL(colorStyleSwitched()), this, + SLOT(onColorStyleChanged())); + ret = ret && connect(paletteHandle, SIGNAL(paletteSwitched()), this, + SLOT(onColorStyleChanged())); assert(ret); } }