← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~suutari-olli/openlp/bug-fixes-2-4-3 into lp:openlp

 

Azaziah has proposed merging lp:~suutari-olli/openlp/bug-fixes-2-4-3 into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)
Related bugs:
  Bug #1487788 in OpenLP: "Importing photos does not give focus to OpenLP"
  https://bugs.launchpad.net/openlp/+bug/1487788
  Bug #1512040 in OpenLP: "Loop tooltip gets stuck to "Stop playing...""
  https://bugs.launchpad.net/openlp/+bug/1512040

For more details, see:
https://code.launchpad.net/~suutari-olli/openlp/bug-fixes-2-4-3/+merge/307264

for diff
-- 
Your team OpenLP Core is requested to review the proposed merge of lp:~suutari-olli/openlp/bug-fixes-2-4-3 into lp:openlp.
=== modified file 'openlp/core/ui/lib/treewidgetwithdnd.py'
--- openlp/core/ui/lib/treewidgetwithdnd.py	2016-04-17 19:32:15 +0000
+++ openlp/core/ui/lib/treewidgetwithdnd.py	2016-09-30 03:02:24 +0000
@@ -26,7 +26,7 @@
 
 from PyQt5 import QtCore, QtGui, QtWidgets
 
-from openlp.core.common import Registry
+from openlp.core.common import Registry, is_win
 
 
 class TreeWidgetWithDnD(QtWidgets.QTreeWidget):
@@ -108,6 +108,11 @@
 
         :param event: Handle of the event pint passed
         """
+        # If we are on Windows, OpenLP window will not be set on top. For example, user can drag images to Library and
+        # 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()

=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py	2016-08-10 18:50:40 +0000
+++ openlp/core/ui/slidecontroller.py	2016-09-30 03:02:24 +0000
@@ -732,8 +732,10 @@
         # Reset the button
         self.play_slides_once.setChecked(False)
         self.play_slides_once.setIcon(build_icon(':/media/media_time.png'))
+        self.play_slides_once.setText(UiStrings().PlaySlidesToEnd)
         self.play_slides_loop.setChecked(False)
         self.play_slides_loop.setIcon(build_icon(':/media/media_time.png'))
+        self.play_slides_loop.setText(UiStrings().PlaySlidesInLoop)
         if item.is_text():
             if (Settings().value(self.main_window.songs_settings_section + '/display songbar') and
                     not self.song_menu.menu().isEmpty()):


References