git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1195 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-28 23:33:47 +00:00
parent 363f70da7a
commit de3e2e3d0b
3 changed files with 15 additions and 21 deletions

View File

@@ -72,22 +72,13 @@ tool * tool::instantiate( const QString & _plugin_name, model * _parent )
toolView::toolView( tool * _tool ) :
pluginView( _tool, engine::getMainWindow()->workspace() )
pluginView( _tool, NULL )
{
QWidget * window;
if( engine::getMainWindow()->workspace() )
{
engine::getMainWindow()->workspace()->addSubWindow( this );
window = parentWidget();
window->setAttribute( Qt::WA_DeleteOnClose, FALSE );
}
else
{
window = this;
}
engine::getMainWindow()->workspace()->addSubWindow( this );
parentWidget()->setAttribute( Qt::WA_DeleteOnClose, FALSE );
window->setWindowTitle( _tool->publicName() );
window->setWindowIcon( _tool->getDescriptor()->logo->pixmap() );
setWindowTitle( _tool->publicName() );
setWindowIcon( _tool->getDescriptor()->logo->pixmap() );
}