Fix for bug #1253922 -- Quickview window is not staying on top of its parent in some *nix systems.

This commit is contained in:
Charles Haley 2013-11-23 10:11:56 +01:00
parent b8bb775a1b
commit d9dd5fbe59

View File

@ -64,6 +64,7 @@ class Quickview(QDialog, Ui_Quickview):
# Remove the help button from the window title bar # Remove the help button from the window title bar
icon = self.windowIcon() icon = self.windowIcon()
self.setWindowFlags(self.windowFlags()&(~Qt.WindowContextHelpButtonHint)) self.setWindowFlags(self.windowFlags()&(~Qt.WindowContextHelpButtonHint))
self.setWindowFlags(self.windowFlags()|Qt.WindowStaysOnTopHint)
self.setWindowIcon(icon) self.setWindowIcon(icon)
self.db = view.model().db self.db = view.model().db