The attached patch fixes a regression introduced into trunk in r40585

description of regression:
Non-hidden files are shown in the submenu view > hidden and hidden files are 
not shown there.
You can reproduce by opening a new file and seeing that it is listed under view 
> hidden. Additionally, open another new file, save it, hide it, and it will 
not be listed under view > hidden.

Should I send small fixes such as this to the list or make a ticket?

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

Reply via email to