File fix-ui-null-check-screen-in-PromptDialog.patch of Package opensnitch

See: https://github.com/evilsocket/opensnitch/pull/1531
Index: opensnitch-1.8.0/ui/opensnitch/dialogs/prompt/__init__.py
===================================================================
--- opensnitch-1.8.0.orig/ui/opensnitch/dialogs/prompt/__init__.py
+++ opensnitch-1.8.0/ui/opensnitch/dialogs/prompt/__init__.py
@@ -189,8 +189,10 @@ class PromptDialog(QtWidgets.QDialog, ui
 
     def move_popup(self):
         popup_pos = self._cfg.getInt(self._cfg.DEFAULT_POPUP_POSITION)
-        point = self.screen().availableGeometry()
-        point = self.screen().virtualSiblingAt(QtGui.QCursor.pos()).availableGeometry()
+        screen = self.screen().virtualSiblingAt(QtGui.QCursor.pos())
+        if not screen:
+            return
+        point = screen.availableGeometry()
         if popup_pos == self._cfg.POPUP_TOP_RIGHT:
             self.move(point.topRight())
         elif popup_pos == self._cfg.POPUP_TOP_LEFT:
openSUSE Build Service is sponsored by