Pavel Sanda ha scritto:
its in.
there was some bad indentation, perhaps because I produced the diff through:

 svn diff --diff-cmd diff -x -uw

the attachment fixes it.
this has maybe something to do with your window manager, i dont see it here.
what about the searchWorkArea on your system ? does it get focus or not,
when you press C-S-f ?

   T.
Index: src/frontends/qt4/GuiView.cpp
===================================================================
--- src/frontends/qt4/GuiView.cpp	(revisione 27348)
+++ src/frontends/qt4/GuiView.cpp	(copia locale)
@@ -941,8 +941,8 @@
 				d.current_main_work_area_->setLineWidth(2);
 				LYXERR(Debug::DEBUG, "Current wa: " << currentWorkArea() << ", Current main wa: " << currentMainWorkArea());
 				return;
+			}
 		}
-		}
 		LYXERR(Debug::DEBUG, "This is not a tabbed wa");
 		on_currentWorkAreaChanged(wa);
 		BufferView & bv = wa->bufferView();
Index: src/frontends/qt4/GuiSearchAdv.cpp
===================================================================
--- src/frontends/qt4/GuiSearchAdv.cpp	(revisione 27348)
+++ src/frontends/qt4/GuiSearchAdv.cpp	(copia locale)
@@ -52,19 +52,19 @@
 	LYXERR(Debug::DEBUG, "SearchAdvDialog::eventFilter()" << std::endl);
 	if (obj == searchWorkArea_ && event->type() == QEvent::KeyPress) {
 		QKeyEvent *e = static_cast<QKeyEvent *> (event);
-	if (e->key() == Qt::Key_Escape && e->modifiers() == Qt::NoModifier) {
-		on_closePB_clicked();
+		if (e->key() == Qt::Key_Escape && e->modifiers() == Qt::NoModifier) {
+			on_closePB_clicked();
 			return true;
-	} else if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return) {
-		if (e->modifiers() == Qt::ShiftModifier) {
-			on_findPrevPB_clicked();
+		} else if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return) {
+			if (e->modifiers() == Qt::ShiftModifier) {
+				on_findPrevPB_clicked();
 				return true;
-		} else if (e->modifiers() == Qt::NoModifier) {
-			on_findNextPB_clicked();
+			} else if (e->modifiers() == Qt::NoModifier) {
+				on_findNextPB_clicked();
 				return true;
+			}
 		}
 	}
-	}
 	// standard event processing
 	return QObject::eventFilter(obj, event);
 }

Reply via email to