slotShowClipProperties: Use QPointer [krazy 27/37] by Mikko Rapeli

parent a14d57ed
......@@ -3272,7 +3272,7 @@ void MainWindow::slotShowClipProperties(DocClipBase *clip)
return;
}
QString path = clip->getProperty("resource");
TitleWidget *dia_ui = new TitleWidget(KUrl(), m_activeDocument->timecode(), titlepath, m_projectMonitor->render, this);
QPointer<TitleWidget> dia_ui = new TitleWidget(KUrl(), m_activeDocument->timecode(), titlepath, m_projectMonitor->render, this);
QDomDocument doc;
doc.setContent(clip->getProperty("xmldata"));
dia_ui->setXml(doc);
......
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