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).
This commit is contained in:
Tobias Doerffel
2009-04-25 16:38:54 +02:00
parent 780447d751
commit 12d26ed0aa

View File

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