mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
91e81879a5
commit
418b160731
1 changed files with 0 additions and 3 deletions
|
@ -110,11 +110,9 @@ void TabDivePhotos::recalculateSelectedThumbnails()
|
|||
|
||||
void TabDivePhotos::saveSubtitles()
|
||||
{
|
||||
QVector<QString> selectedPhotos;
|
||||
if (!ui->photosView->selectionModel()->hasSelection())
|
||||
return;
|
||||
QModelIndexList indices = ui->photosView->selectionModel()->selectedRows();
|
||||
selectedPhotos.reserve(indices.count());
|
||||
for (const auto &photo: indices) {
|
||||
if (photo.isValid()) {
|
||||
QString fileUrl = photo.data(Qt::DisplayPropertyRole).toString();
|
||||
|
@ -135,7 +133,6 @@ void TabDivePhotos::saveSubtitles()
|
|||
subtitlefile.close();
|
||||
free(data);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue