On Sun, 15 Jan 2017 at 00:32:15 +0000, Simon McVittie wrote:
> I suspect that last line was intended to be a GetMultilinePage wrapper.
> But I can't actually test this, because the only use of get_multiline()
> does have ENTER in its prompt (and it crashes - fix attached).
On testing it by hacking the prompt for Cc in advanced mode to not include
ENTER, sure enough it doesn't work.
S
>From 247e9aefba791ba037ac737cc061d5d445a86a15 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Sun, 15 Jan 2017 00:35:21 +0000
Subject: [PATCH 15/15] gtk2_ui: fix unbound local variable in GetMultilinePage
---
reportbug/ui/gtk2_ui.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 0388668..8b41ae8 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -790,7 +790,7 @@ class GetMultilinePage(Page):
vbox.pack_start(self.label, False, True, 0)
self.view = Gtk.TextView()
- self.buffer = view.get_buffer()
+ self.buffer = self.view.get_buffer()
scrolled = create_scrollable(self.view)
vbox.pack_start(scrolled, True, True, 0)
return vbox
--
2.11.0
_______________________________________________
Reportbug-maint mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint