fix toonz raster brush crash (#2381)

This commit is contained in:
shun-iwasawa 2018-11-16 16:57:04 +09:00 committed by masafumi-inoue
parent 9fde3a3791
commit e93284d9ca

View file

@ -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);
}
}