coding style

This commit is contained in:
Denis Fomin 2011-06-26 00:28:42 +04:00
parent de576ebddf
commit 5bba1d51fc
1 changed files with 2 additions and 1 deletions

View File

@ -941,9 +941,10 @@ class HtmlTextView(gtk.TextView):
gtk.gdk.SELECTION_PRIMARY))
def on_left_mouse_button_release(self, widget, event):
bounds = self.get_buffer().get_selection_bounds()
if event.button != 1:
return
bounds = self.get_buffer().get_selection_bounds()
if bounds:
# textview can be hidden while we add a new line in it.
if self.has_screen():