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

Correctly enable current bin item proxy action after proxy is enabled/disabled in project settings

parent 469dd851
Pipeline #188284 passed with stage
in 11 minutes and 22 seconds
......@@ -4492,6 +4492,20 @@ void Bin::refreshProxySettings()
emit static_cast<ClipPropertiesController *>(w)->enableProxy(m_doc->useProxy());
}
}
bool isFolder = false;
const QModelIndexList indexes = m_proxyModel->selectionModel()->selectedIndexes();
for (const QModelIndex &ix : indexes) {
if (!ix.isValid() || ix.column() != 0) {
continue;
}
std::shared_ptr<AbstractProjectItem> currentItem = m_itemModel->getBinItemByIndex(m_proxyModel->mapToSource(ix));
if (currentItem) {
AbstractProjectItem::PROJECTITEMTYPE itemType = currentItem->itemType();
isFolder = itemType == AbstractProjectItem::FolderItem;
}
break;
}
m_proxyAction->setEnabled(m_doc->useProxy() && !isFolder);
if (!m_doc->useProxy()) {
// Disable all proxies
m_doc->slotProxyCurrentItem(false, clipList, false, masterCommand);
......
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