InstrumentTrackWindow: clear focus on closeEvent

When closing an InstrumentTrackWindow make sure it doesn't still have
keyboard focus (looks like a bug in Qt) and set focus on
trackLabelButton instead (closes #2780590).
(cherry picked from commit 12d26ed0aa)
This commit is contained in:
Tobias Doerffel
2009-04-25 16:38:54 +02:00
parent c94d003683
commit ed02d1d501

View File

@@ -1429,6 +1429,7 @@ void instrumentTrackWindow::closeEvent( QCloseEvent * _ce )
{
hide();
}
m_itv->m_tlb->setFocus();
m_itv->m_tlb->setChecked( false );
}