Stop inadvertent editing of cell after cancelling search
This commit is contained in:
parent
03f19dfb9c
commit
1b92b79cf0
@ -460,6 +460,11 @@ class PlaylistTab(QTableView):
|
|||||||
"""Unselect all tracks and reset drag mode"""
|
"""Unselect all tracks and reset drag mode"""
|
||||||
|
|
||||||
self.clearSelection()
|
self.clearSelection()
|
||||||
|
# We want to remove the focus from any widget otherwise keyboard
|
||||||
|
# activity may edit a cell.
|
||||||
|
fw = self.musicmuster.focusWidget()
|
||||||
|
if fw:
|
||||||
|
fw.clearFocus()
|
||||||
self.setDragEnabled(False)
|
self.setDragEnabled(False)
|
||||||
|
|
||||||
def _column_resize(self, column_number: int, _old: int, _new: int) -> None:
|
def _column_resize(self, column_number: int, _old: int, _new: int) -> None:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user