Skip to content
GitLab
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
3148e662
Commit
3148e662
authored
Sep 21, 2018
by
Jean-Baptiste Mardelle
Browse files
Fix double clicking a title clip in bin tries to rename instead of opening the title dialog
parent
68556dbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
3148e662
...
...
@@ -1951,8 +1951,8 @@ void Bin::slotItemDoubleClicked(const QModelIndex &ix, const QPoint pos)
}
if
(
ix
.
isValid
())
{
QRect
IconRect
=
m_itemView
->
visualRect
(
ix
);
IconRect
.
set
Size
(
m_itemView
->
iconSize
());
if
(
!
pos
.
isNull
()
&&
((
ix
.
column
()
==
2
&&
item
->
itemType
()
==
AbstractProjectItem
::
ClipItem
)
||
!
IconRect
.
contains
(
pos
)))
{
IconRect
.
set
Width
((
double
)
IconRect
.
height
()
/
m_itemView
->
iconSize
().
height
()
*
m_itemView
->
iconSize
()
.
width
()
);
if
(
!
pos
.
isNull
()
&&
((
ix
.
column
()
==
2
&&
item
->
itemType
()
==
AbstractProjectItem
::
ClipItem
)
||
(
!
IconRect
.
contains
(
pos
)
&&
pos
.
y
()
<
(
IconRect
.
y
()
+
IconRect
.
height
()
/
2
))
))
{
// User clicked outside icon, trigger rename
m_itemView
->
edit
(
ix
);
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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