From c6bc92e5337b7307ca0fbe903507fc61db5d5a1d Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 18 Oct 2008 10:21:21 +0000 Subject: [PATCH] do not reclaim keyboard focus if new focus widget is a QLineEdit git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1764 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/core/piano.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/piano.cpp b/src/core/piano.cpp index a9cff9a19..b80550bb5 100644 --- a/src/core/piano.cpp +++ b/src/core/piano.cpp @@ -718,7 +718,9 @@ void pianoView::focusOutEvent( QFocusEvent * ) // focus just switched to another control inside the instrument track // window we live in? - if( parentWidget()->parentWidget()->focusWidget() != this ) + if( parentWidget()->parentWidget()->focusWidget() != this && + !parentWidget()->parentWidget()-> + focusWidget()->inherits( "QLineEdit" ) ) { // then reclaim keyboard focus! setFocus();