Skip to content
Snippets Groups Projects
Commit 1ea09518 authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Felix Paul Kühne
Browse files

qml: don't lose selection on context button in table view

parent 0391b33a
No related branches found
No related tags found
1 merge request!2081qml: don't lose selection on context button in table view
......@@ -203,7 +203,8 @@ T.Control {
visible: delegate.hovered
onClicked: {
delegate.selectAndFocus(Qt.NoModifier, Qt.MouseFocusReason)
if (!delegate.selected)
delegate.selectAndFocus(Qt.NoModifier, Qt.MouseFocusReason)
var pos = contextButton.mapToGlobal(VLCStyle.margin_xsmall, contextButton.height / 2 + VLCStyle.fontHeight_normal)
root.contextMenuButtonClicked(this, delegate.rowModel, pos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment