media: remove unused local variable

TabDivePhotos::saveSubtitles() had an unused local variable.
Clearly a copy&paste oversight.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-15 22:36:41 +02:00 committed by Dirk Hohndel
parent 91e81879a5
commit 418b160731

View file

@ -110,11 +110,9 @@ void TabDivePhotos::recalculateSelectedThumbnails()
void TabDivePhotos::saveSubtitles() void TabDivePhotos::saveSubtitles()
{ {
QVector<QString> selectedPhotos;
if (!ui->photosView->selectionModel()->hasSelection()) if (!ui->photosView->selectionModel()->hasSelection())
return; return;
QModelIndexList indices = ui->photosView->selectionModel()->selectedRows(); QModelIndexList indices = ui->photosView->selectionModel()->selectedRows();
selectedPhotos.reserve(indices.count());
for (const auto &photo: indices) { for (const auto &photo: indices) {
if (photo.isValid()) { if (photo.isValid()) {
QString fileUrl = photo.data(Qt::DisplayPropertyRole).toString(); QString fileUrl = photo.data(Qt::DisplayPropertyRole).toString();
@ -135,7 +133,6 @@ void TabDivePhotos::saveSubtitles()
subtitlefile.close(); subtitlefile.close();
free(data); free(data);
} }
} }
} }
} }