瀏覽代碼

Merge remote-tracking branch 'qubesos/pr/106'

* qubesos/pr/106:
  Offset context menu in Manager to avoid accidental clicks
Marek Marczykowski-Górecki 6 年之前
父節點
當前提交
0c103e08b7
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      qubesmanager/qube_manager.py

+ 4 - 2
qubesmanager/qube_manager.py

@@ -1263,9 +1263,11 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
 
             self.logs_menu.setEnabled(not menu_empty)
             if vm.qid == 0:
-                self.dom0_context_menu.exec_(self.table.mapToGlobal(point))
+                self.dom0_context_menu.exec_(self.table.mapToGlobal(
+                    point + QtCore.QPoint(10, 0)))
             else:
-                self.context_menu.exec_(self.table.mapToGlobal(point))
+                self.context_menu.exec_(self.table.mapToGlobal(
+                    point + QtCore.QPoint(10, 0)))
         except exc.QubesPropertyAccessError:
             pass