fix toonz raster brush crash (#2381)
This commit is contained in:
parent
9fde3a3791
commit
e93284d9ca
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue