From c6ab678944587867cec9ee501fc5fe05a114f3b9 Mon Sep 17 00:00:00 2001 From: Rafael Date: Thu, 27 Oct 2016 07:27:06 +0200 Subject: [PATCH] Fix bug was make it not possible to delete hidden snapmatics --- ProfileInterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp index 1a90161..7e453a8 100755 --- a/ProfileInterface.cpp +++ b/ProfileInterface.cpp @@ -770,8 +770,7 @@ void ProfileInterface::deleteSelected() if (widget->getWidgetType() == "SnapmaticWidget") { SnapmaticWidget *picWidget = (SnapmaticWidget*)widget; - SnapmaticPicture *picture = picWidget->getPicture(); - QString fileName = picture->getPictureFileName(); + QString fileName = picWidget->getPicturePath(); if (!QFile::exists(fileName) || QFile::remove(fileName)) { pictureDeleted_f(picWidget);