Fix bug was make it not possible to delete hidden snapmatics
This commit is contained in:
parent
3841ffaac6
commit
c6ab678944
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue