Commit 94b1b432 authored by Vincent Pinon's avatar Vincent Pinon Committed by Vincent Pinon
Browse files

Fix crash changing title font for 2nd time

BUG: 379606
parent 8f788c1d
......@@ -169,8 +169,6 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
connect(textOutline, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateText()));
connect(font_weight_box, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateText()));
connect(font_family, &QComboBox::editTextChanged, this, &TitleWidget::slotFontText);
connect(rectFColor, &KColorButton::changed, this, &TitleWidget::rectChanged);
connect(rectBColor, &KColorButton::changed, this, &TitleWidget::rectChanged);
connect(plain_rect, &QAbstractButton::clicked, this, &TitleWidget::rectChanged);
......@@ -2350,18 +2348,6 @@ void TitleWidget::slotAddEffect(int /*ix*/)
void TitleWidget::slotFontText(const QString &s)
const QFont f(s);
if (f.exactMatch()) {
// Font really exists (could also just be a «d» if the user
// starts typing «dejavu» for example).
// Note: Typing dejavu serif does not recognize the font (takes sans)
// in older Qt versions. Case must match there (except for first letter)
void TitleWidget::slotEditTypewriter(int /*ix*/)
QList<QGraphicsItem *> l = graphicsView->scene()->selectedItems();
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