Commit 6d6cd007 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix designer crash with Kdenlive widgets

parent 5b5fdfbc
Pipeline #269955 passed with stage
in 6 minutes and 42 seconds
......@@ -14,15 +14,16 @@ MarkerCategoryChooser::MarkerCategoryChooser(QWidget *parent)
, m_allowAll(true)
, m_onlyUsed(false)
{
if (pCore) {
refresh();
}
refresh();
connect(this, &MarkerCategoryChooser::changed, this, &MarkerCategoryChooser::refresh);
}
void MarkerCategoryChooser::refresh()
{
clear();
if (pCore == nullptr) {
return;
}
// Set up guide categories
QPixmap pixmap(32, 32);
QMapIterator<int, Core::MarkerCategory> i(pCore->markerTypes);
......
Supports Markdown
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