Commit 8080f074 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix possible detaching

By using a const reference we are sure the container won't detach.

GIT_SILENT
parent 3159f771
......@@ -203,7 +203,7 @@ void MainWindow::openArchive()
connect(dlg, &QDialog::finished, this, [this, dlg](int result) {
if (result == QDialog::Accepted) {
openUrl(dlg->selectedUrls().first());
openUrl(dlg->selectedUrls().at(0));
}
dlg->deleteLater();
});
......
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