summaryrefslogtreecommitdiffstats
path: root/logic/lists/ScreenshotList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/lists/ScreenshotList.cpp')
-rw-r--r--logic/lists/ScreenshotList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/lists/ScreenshotList.cpp b/logic/lists/ScreenshotList.cpp
index 9f4ce6b5..eda57a03 100644
--- a/logic/lists/ScreenshotList.cpp
+++ b/logic/lists/ScreenshotList.cpp
@@ -88,10 +88,10 @@ void ScreenshotList::deleteSelected(ScreenshotDialog *dialog)
return;
}
beginResetModel();
- QList<ScreenShot *>::const_iterator it;
+ QList<std::shared_ptr<ScreenShot>>::const_iterator it;
for (it = screens.cbegin(); it != screens.cend(); it++)
{
- ScreenShot *shot = *it;
+ std::shared_ptr<ScreenShot> = *it;
if (!QFile(shot->file).remove())
{
CustomMessageBox::selectable(dialog, tr("Error!"),