m_projectListDock->raise();
}
-void MainWindow::queryQuit()
+MainWindow::~MainWindow()
{
- if (queryClose()) {
- if (m_projectMonitor) m_projectMonitor->stop();
- if (m_clipMonitor) m_clipMonitor->stop();
- delete m_activeTimeline;
+ m_effectStack->slotClipItemSelected(NULL, 0);
+ m_transitionConfig->slotTransitionItemSelected(NULL, 0, QPoint(), false);
+
+ if (m_projectMonitor) m_projectMonitor->stop();
+ if (m_clipMonitor) m_clipMonitor->stop();
+
+ if (m_activeTimeline) delete m_activeTimeline;
+
+ delete m_effectStack;
+ delete m_transitionConfig;
+
+ if (m_activeDocument) delete m_activeDocument;
#ifndef Q_WS_MAC
- // This sometimes causes crash on exit on OS X for some reason.
- delete m_projectMonitor;
- delete m_clipMonitor;
+ // This sometimes causes crash on exit on OS X for some reason.
+ delete m_projectMonitor;
+ delete m_clipMonitor;
#endif
- delete m_effectStack;
- delete m_activeDocument;
- delete m_shortcutRemoveFocus;
- Mlt::Factory::close();
+ delete m_shortcutRemoveFocus;
+ Mlt::Factory::close();
+}
+
+void MainWindow::queryQuit()
+{
+ if (queryClose()) {
kapp->quit();
}
}
* a default new file will be created. */
explicit MainWindow(const QString &MltPath = QString(),
const KUrl &Url = KUrl(), QWidget *parent = 0);
+ virtual ~MainWindow();
/** @brief Locates the MLT environment.
* @param mltPath (optional) path to MLT environment