Leo has been behaving very strangely lately.  Sometimes Alt-A 
(sort-headlines) didn't work.  The effect was terrifying: Leo's body pane 
lost focus.  Everything seemed broken.  Even the minibuffer didn't always 
work.

This morning I added a heavyweight debugging tool, 
leoQtEventFilter.traceWidget, which traces events in various ways.

I added a script button:
@button toggle-debug:

g.app.debug_app = not g.app.debug_app
g.app.debug_widgets = not g.app.debug_widgets
print('g.app.debug_app: %s' % g.app.debug_app)
print('g.app.debug_widgets: %s' % g.app.debug_widgets)

Just now the horror happened again.  I clicked the button.  Instantly I saw 
that a QCheckBox had focus.

Huh?  Doh!  Alt-A was toggling the Wrap-Around box in the Find pane!
This would also explain why Alt-X didn't bring up the minibuffer!

Isn't this a perfect example of H. H. Dow's "that's just what I wanted" 
attitude?

This terrifying bug

a) has a simple cause (not fixed yet) and
b) Leo now has a truly powerful new debugging method.

Check out traceWidget.  It's good.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to