- Made a better fix for giving OpenLP focus, it now works more than once.

This commit is contained in:
Olli Suutari 2016-09-30 05:57:44 +03:00
parent 8dbd79dba0
commit 238397fa3c
1 changed files with 1 additions and 0 deletions

View File

@ -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.
if is_win():
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
self.setWindowState(QtCore.Qt.WindowNoState)
if event.mimeData().hasUrls():
event.setDropAction(QtCore.Qt.CopyAction)
event.accept()