Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable fileview: remove customContextMenuRequested slot from HgFileView

Since sci is now an AnnotateView widget, it handles the context menu request
itself. Handling the signal here was causing a second menu (without annotate
features) to be presented to the user.

Changeset 5b6e86c1d292

Parent dbc2859697d3

by Steve Borho

Changes to one file · Browse files at 5b6e86c1d292 Showing diff from parent dbc2859697d3 Diff from another changeset...

 
111
112
113
114
115
116
117
118
 
201
202
203
204
205
206
207
208
209
210
 
111
112
113
 
 
114
115
116
 
199
200
201
 
 
 
 
202
203
204
@@ -111,8 +111,6 @@
  self.sci.setReadOnly(True)   self.sci.setUtf8(True)   self.sci.installEventFilter(qscilib.KeyPressInterceptor(self)) - self.sci.setContextMenuPolicy(Qt.CustomContextMenu) - self.sci.customContextMenuRequested.connect(self.menuRequested)   self.sci.setCaretLineVisible(False)     # define markers for colorize zones of diff @@ -201,10 +199,6 @@
  def setFont(self, font):   self.sci.setFont(font)   - def menuRequested(self, point): - point = self.sci.mapToGlobal(point) - return self.sci.createStandardContextMenu().exec_(point) -   def loadSettings(self, qs, prefix):   self.sci.loadSettings(qs, prefix)