Fixed project load bug
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@606 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2007-11-22 Paul Giblock <drfaygo/at/gmail/dot/com>
|
||||
* src/widgets/text_float.cpp:
|
||||
* src/core/track.cpp:
|
||||
- fixed segfaults from clicking on track content objects after loading a
|
||||
project.
|
||||
- I don't have a copy of 3.1 to reference, so I don't know where the
|
||||
textFloat is normally displayed. Feel free to adjust.
|
||||
|
||||
|
||||
2007-11-21 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/lib/sample_buffer.cpp:
|
||||
|
||||
@@ -325,8 +325,8 @@ void trackContentObject::mouseMoveEvent( QMouseEvent * _me )
|
||||
s_textFloat->setText( QString( "%1:%2" ).
|
||||
arg( m_startPosition.getTact() + 1 ).
|
||||
arg( m_startPosition.getTact64th() ) );
|
||||
s_textFloat->move( mapTo( topLevelWidget(), QPoint( 0, 0 ) ) +
|
||||
QPoint( -2 - s_textFloat->width(), 8 ) );
|
||||
s_textFloat->move( QPoint(8, s_textFloat->parentWidget()->height() -
|
||||
s_textFloat->height() - 24 ) );
|
||||
}
|
||||
else if( m_action == MOVE_SELECTION )
|
||||
{
|
||||
@@ -587,7 +587,6 @@ trackContentObject * trackContentWidget::getTCO( int _tco_num )
|
||||
printf( "called trackContentWidget::getTCO( %d, TRUE ), "
|
||||
"but TCO %d doesn't exist\n", _tco_num, _tco_num );
|
||||
return( getTrack()->addTCO( getTrack()->createTCO( _tco_num * 64 ) ) );
|
||||
// return( NULL );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -91,8 +91,7 @@ void textFloat::reparent( QWidget * _new_parent )
|
||||
|
||||
// Get position and reparent to either top level or dialog
|
||||
//
|
||||
while( _new_parent->parentWidget() && !_new_parent->isTopLevel() &&
|
||||
!_new_parent->windowType() == Qt::Dialog )
|
||||
while( _new_parent->parentWidget() && !_new_parent->inherits("QMdiSubWindow"))
|
||||
{
|
||||
_new_parent = _new_parent->parentWidget();
|
||||
position += _new_parent->pos();
|
||||
|
||||
Reference in New Issue
Block a user