Commit f76de41c authored by Clément Fauconnier's avatar Clément Fauconnier

fix an error where color/font pickers were attached to the wrong view

parent d532097e
......@@ -354,7 +354,7 @@ void UBGraphicsTextItemDelegate::pickColor()
{
if (mDelegated && mDelegated->scene() && mDelegated->scene()->views().size() > 0)
{
QColorDialog colorDialog(delegated()->defaultTextColor(), mDelegated->scene()->views().at(0));
QColorDialog colorDialog(delegated()->defaultTextColor(), static_cast<QGraphicsView*>(UBApplication::boardController->controlView()));
colorDialog.setWindowTitle(tr("Text Color"));
if (UBSettings::settings()->isDarkBackground())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment