Permalink
Browse files

difftool: Use a window-modal dialog when diffing commits

The list of files floats above external difftool on OS X
unless we make it modal to the parent window.

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
1 parent bb6cc11 commit 00c2aa4c1be2ce80842a02c27d607c0fbfbae1dd @davvid davvid committed Dec 27, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 cola/difftool.py
View
@@ -29,6 +29,8 @@ def __init__(self, parent, a, b):
self.b = b
self.setWindowTitle('Select File(s)')
+ self.setWindowModality(QtCore.Qt.WindowModal)
+
self._tree = QtGui.QTreeWidget(self)
self._tree.setAlternatingRowColors(True)
self._tree.setRootIsDecorated(False)

0 comments on commit 00c2aa4

Please sign in to comment.