Fix crash in project settings caused by recent update to cache data management

parent d206db0e
Pipeline #23380 passed with stage
in 12 minutes and 37 seconds
......@@ -217,12 +217,11 @@ TemporaryData::TemporaryData(KdenliveDoc *doc, bool currentProjectOnly, QWidget
lay->addWidget(tab);
}
setLayout(lay);
if (globalOnly) {
if (globalOnly && !currentProjectOnly) {
updateGlobalInfo();
} else {
updateDataInfo();
}
processProxyDirectory();
}
void TemporaryData::updateDataInfo()
......@@ -752,6 +751,7 @@ void TemporaryData::updateGlobalInfo()
m_globalDirectories.removeAll(QStringLiteral("attica"));
m_globalDirectories.removeAll(QStringLiteral("proxy"));
m_globalDelete->setEnabled(!m_globalDirectories.isEmpty());
processProxyDirectory();
processglobalDirectories();
m_listWidget->blockSignals(false);
}
......
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