Commit 78f8880a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on exit

parent cb0c34b0
Pipeline #14260 passed with stage
in 22 minutes and 24 seconds
...@@ -60,7 +60,6 @@ void EffectListWidget::updateFavorite(const QModelIndex &index) ...@@ -60,7 +60,6 @@ void EffectListWidget::updateFavorite(const QModelIndex &index)
EffectListWidget::~EffectListWidget() EffectListWidget::~EffectListWidget()
{ {
delete m_proxy;
qDebug() << " - - -Deleting effect list widget"; qDebug() << " - - -Deleting effect list widget";
} }
......
...@@ -57,6 +57,12 @@ TimelineTabs::TimelineTabs(QWidget *parent) ...@@ -57,6 +57,12 @@ TimelineTabs::TimelineTabs(QWidget *parent)
connect(pCore->monitorManager()->projectMonitor(), &Monitor::addEffect, m_mainTimeline->controller(), &TimelineController::addEffectToCurrentClip); connect(pCore->monitorManager()->projectMonitor(), &Monitor::addEffect, m_mainTimeline->controller(), &TimelineController::addEffectToCurrentClip);
} }
TimelineTabs::~TimelineTabs()
{
// clear source
m_mainTimeline->setSource(QUrl());
}
TimelineWidget *TimelineTabs::getMainTimeline() const TimelineWidget *TimelineTabs::getMainTimeline() const
{ {
return m_mainTimeline; return m_mainTimeline;
......
...@@ -49,7 +49,7 @@ class TimelineTabs : public QTabWidget ...@@ -49,7 +49,7 @@ class TimelineTabs : public QTabWidget
public: public:
/* Construct the tabs as well as the widget for the main timeline */ /* Construct the tabs as well as the widget for the main timeline */
TimelineTabs(QWidget *parent); TimelineTabs(QWidget *parent);
virtual ~TimelineTabs();
/* @brief Returns a pointer to the main timeline */ /* @brief Returns a pointer to the main timeline */
TimelineWidget *getMainTimeline() const; TimelineWidget *getMainTimeline() const;
......
...@@ -53,7 +53,6 @@ TransitionListWidget::TransitionListWidget(QWidget *parent) ...@@ -53,7 +53,6 @@ TransitionListWidget::TransitionListWidget(QWidget *parent)
TransitionListWidget::~TransitionListWidget() TransitionListWidget::~TransitionListWidget()
{ {
delete m_proxy;
qDebug() << " - - -Deleting transition list widget"; qDebug() << " - - -Deleting transition list widget";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment