slotAddClipMarker: Use QPointer [krazy 25/37] by Mikko Rapeli

parent fc0ae010
......@@ -2833,9 +2833,11 @@ void MainWindow::slotAddClipMarker()
}
QString id = clip->getId();
CommentedTime marker(pos, i18n("Marker"));
MarkerDialog d(clip, marker, m_activeDocument->timecode(), i18n("Add Marker"), this);
if (d.exec() == QDialog::Accepted)
m_activeTimeline->projectView()->slotAddClipMarker(id, d.newMarker().time(), d.newMarker().comment());
QPointer<MarkerDialog> d = new MarkerDialog(clip, marker,
m_activeDocument->timecode(), i18n("Add Marker"), this);
if (d->exec() == QDialog::Accepted)
m_activeTimeline->projectView()->slotAddClipMarker(id, d->newMarker().time(), d->newMarker().comment());
delete d;
}
void MainWindow::slotDeleteClipMarker()
......
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