From: lyx-devel@lists.lyx.org [lyx-devel@lists.lyx.org] on behalf of Pavel 
Sanda [sa...@lyx.org]
Sent: Wednesday, February 22, 2012 6:08 AM

> I don't see the whole context of the code but it seems to me that to
> get pre-r40585 logic, '!' shall be put ahead of the whole && clause, no?

Yes, you are right, Pavel. Attached is the updated patch.

Thanks,

Scott
Index: src/frontends/qt4/Menus.cpp
===================================================================
--- src/frontends/qt4/Menus.cpp	(revision 40791)
+++ src/frontends/qt4/Menus.cpp	(working copy)
@@ -949,8 +949,8 @@
 	Buffer * b = first;
 	// We cannot use a for loop as the buffer list cycles.
 	do {
-		if (guiApp->currentView()
-		    && guiApp->currentView()->workArea(*b)) {
+		if (!(guiApp->currentView()
+		    && guiApp->currentView()->workArea(*b))) {
 			QString label = toqstr(b->fileName().displayName(20));
 			if (!b->isClean())
 				label += "*";

Reply via email to