QScintilla/Editor.py

changeset 1930
3ecd42f536fd
parent 1928
adde55ed4ce5
child 1939
eadb2328d7d4
equal deleted inserted replaced
1929:b41f87fbd145 1930:3ecd42f536fd
1926 elif properties[0]: 1926 elif properties[0]:
1927 marker = properties[1] and self.tcbreakpoint or self.cbreakpoint 1927 marker = properties[1] and self.tcbreakpoint or self.cbreakpoint
1928 else: 1928 else:
1929 marker = properties[1] and self.tbreakpoint or self.breakpoint 1929 marker = properties[1] and self.tbreakpoint or self.breakpoint
1930 1930
1931 handle = self.markerAdd(line - 1, marker) 1931 if self.markersAtLine(line - 1) & self.breakpointMask == 0:
1932 self.breaks[handle] = (line,) + properties 1932 handle = self.markerAdd(line - 1, marker)
1933 self.breakpointToggled.emit(self) 1933 self.breaks[handle] = (line,) + properties
1934 self.breakpointToggled.emit(self)
1934 1935
1935 def __toggleBreakpoint(self, line, temporary=False): 1936 def __toggleBreakpoint(self, line, temporary=False):
1936 """ 1937 """
1937 Private method to toggle a breakpoint. 1938 Private method to toggle a breakpoint.
1938 1939
5307 5308
5308 def closeIt(self): 5309 def closeIt(self):
5309 """ 5310 """
5310 Public method called by the viewmanager to finally get rid of us. 5311 Public method called by the viewmanager to finally get rid of us.
5311 """ 5312 """
5312 if Preferences.getEditor("ClearBreaksOnClose"): 5313 if Preferences.getEditor("ClearBreaksOnClose") and not self.__clones:
5313 self.__menuClearBreakpoints() 5314 self.__menuClearBreakpoints()
5314 5315
5315 for clone in self.__clones[:]: 5316 for clone in self.__clones[:]:
5316 self.removeClone(clone) 5317 self.removeClone(clone)
5317 clone.removeClone(self) 5318 clone.removeClone(self)

eric ide

mercurial