diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDivePhotos.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDivePhotos.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.cpp b/desktop-widgets/tab-widgets/TabDivePhotos.cpp index 731e58388..db1b943e4 100644 --- a/desktop-widgets/tab-widgets/TabDivePhotos.cpp +++ b/desktop-widgets/tab-widgets/TabDivePhotos.cpp @@ -84,7 +84,8 @@ QVector<QString> TabDivePhotos::getSelectedFilenames() const void TabDivePhotos::removeSelectedPhotos() { - DivePictureModel::instance()->removePictures(getSelectedFilenames()); + QModelIndexList indices = ui->photosView->selectionModel()->selectedRows(); + DivePictureModel::instance()->removePictures(indices); } void TabDivePhotos::openFolderOfSelectedFiles() |