forked from qt-creator/qt-creator
Fix a crash in the curve editor
when ICore::dialogParent returns an unrelated dialog Change-Id: Ifd0facec3b8b97f6fba61904c2a729e46622e515 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -103,7 +103,7 @@ static QAction *createAction(const Core::Id &id,
|
||||
TimelineToolBar::TimelineToolBar(QWidget *parent)
|
||||
: QToolBar(parent)
|
||||
, m_grp()
|
||||
, m_dialog(new AnimationCurveDialog(Core::ICore::dialogParent()))
|
||||
, m_dialog(new AnimationCurveDialog(this))
|
||||
, m_curveModel(new AnimationCurveEditorModel(0., 500.))
|
||||
{
|
||||
m_dialog->setModel(m_curveModel);
|
||||
|
Reference in New Issue
Block a user