mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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()
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue