This should prevent LP#189116 from crashing Terminator

This commit is contained in:
Chris Jones 2008-02-12 23:22:25 +00:00
parent 4930e42729
commit 08486bb4ae

View File

@ -425,8 +425,11 @@ class TerminatorTerm:
def create_popup_menu (self, event):
menu = gtk.Menu ()
url = None
if event:
url = self._vte.match_check (int (event.x / self._vte.get_char_width ()), int (event.y / self._vte.get_char_height ()))
url = self._vte.match_check (int (event.x / self._vte.get_char_width ()), int (event.y / self._vte.get_char_height ()))
if url:
if url[1] != self.matches['email']:
address = url[0]