Commit 038b7c03 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash clicking ok in empty transcoding dialog

parent 1920dd4c
......@@ -4926,9 +4926,8 @@ void Bin::requestSelectionTranscoding()
{
if (m_transcodingDialog == nullptr) {
m_transcodingDialog = new TranscodeSeek(this);
connect(m_transcodingDialog, &QDialog::accepted, this, [&] () {
QMap<QString,QStringList> ids = m_transcodingDialog->ids();
QString firstId = ids.firstKey();
connect(m_transcodingDialog, &QDialog::accepted, this, [&]() {
QMap<QString, QStringList> ids = m_transcodingDialog->ids();
QMapIterator<QString, QStringList> i(ids);
while (i.hasNext()) {
i.next();
......@@ -4938,8 +4937,7 @@ void Bin::requestSelectionTranscoding()
m_transcodingDialog->deleteLater();
m_transcodingDialog = nullptr;
});
connect(m_transcodingDialog, &QDialog::rejected, this, [&] () {
QString firstId = m_transcodingDialog->ids().firstKey();
connect(m_transcodingDialog, &QDialog::rejected, this, [&]() {
m_transcodingDialog->deleteLater();
m_transcodingDialog = nullptr;
});
......
Supports Markdown
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