Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
5d7f592f
Commit
5d7f592f
authored
Jun 09, 2022
by
Jean-Baptiste Mardelle
Browse files
Correctly enable current bin item proxy action after proxy is enabled/disabled in project settings
parent
5af84df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
5d7f592f
...
...
@@ -4344,6 +4344,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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment