Prevent piano roll window from being resized to 0px height (http://sourceforge.net/p/lmms/patches/43/)

This commit is contained in:
Hannu Haahti
2014-01-17 15:44:43 +02:00
parent 6d0c54443b
commit bad3ed60df

View File

@@ -618,7 +618,7 @@ pianoRoll::pianoRoll() :
if( engine::mainWindow()->workspace() )
{
engine::mainWindow()->workspace()->addSubWindow( this );
parentWidget()->setMinimumWidth( tb_layout->minimumSize().width()+10 );
parentWidget()->setMinimumSize( tb_layout->minimumSize().width()+10, 200 );
parentWidget()->resize( tb_layout->minimumSize().width()+10,
INITIAL_PIANOROLL_HEIGHT );
parentWidget()->hide();