>>>>> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes:

Joost> Jean-Marc Lasgouttes wrote:
Edwin> i just installed 1.4 (with joost's new installer, worked great)
Edwin> i noticed the following (also present in trunk):
>>
Edwin> the toolbar gets disabled after using a dialog
>>
Edwin> is this a known bug?
>>  Yes: http://bugzilla.lyx.org/show_bug.cgi?id=2423

Joost> It's indeed one of the most annoying LyX/Win bugs. I guess
Joost> setting the focus correctly should be an easy thing, can
Joost> someone have a look at it before 1.4.2?

This should fix the bug for everybody but LyX/Mac. This bug is a
byproduct of a LyX/Mac feature that tries to disable useless menu
entries when a dialog has focus.

JMarc

Index: src/frontends/qt2/QtView.C
===================================================================
--- src/frontends/qt2/QtView.C	(revision 13949)
+++ src/frontends/qt2/QtView.C	(working copy)
@@ -149,7 +149,11 @@ void QtView::activated(FuncRequest const
 
 bool QtView::hasFocus() const
 {
+#ifdef Q_WS_MACX
 	return qApp->activeWindow() == this;
+#else
+	return false;
+#endif
 }
 
 

Reply via email to