forked from openlp/openlp
- Made a better fix for giving OpenLP focus, it now works more than once.
This commit is contained in:
parent
8dbd79dba0
commit
238397fa3c
@ -112,6 +112,7 @@ class TreeWidgetWithDnD(QtWidgets.QTreeWidget):
|
|||||||
# the folder stays on top of the group creation box. This piece of code fixes this issue.
|
# the folder stays on top of the group creation box. This piece of code fixes this issue.
|
||||||
if is_win():
|
if is_win():
|
||||||
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
|
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
|
||||||
|
self.setWindowState(QtCore.Qt.WindowNoState)
|
||||||
if event.mimeData().hasUrls():
|
if event.mimeData().hasUrls():
|
||||||
event.setDropAction(QtCore.Qt.CopyAction)
|
event.setDropAction(QtCore.Qt.CopyAction)
|
||||||
event.accept()
|
event.accept()
|
||||||
|
Loading…
Reference in New Issue
Block a user