From ca3bc94f2561c1aefb00c227c2e23fe54cc5c685 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann Date: Sat, 26 May 2018 10:34:25 +0200 Subject: [PATCH] Fix potential memleak caused by unused QAction pointer in SortVolumeComics --- YACReaderLibrary/comic_vine/sort_volume_comics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/comic_vine/sort_volume_comics.cpp b/YACReaderLibrary/comic_vine/sort_volume_comics.cpp index c62ae6ca..45ed0bae 100644 --- a/YACReaderLibrary/comic_vine/sort_volume_comics.cpp +++ b/YACReaderLibrary/comic_vine/sort_volume_comics.cpp @@ -86,7 +86,7 @@ SortVolumeComics::SortVolumeComics(QWidget *parent) : //rows actions QAction * removeItemFromList = new QAction(tr("remove selected comics"),this); QAction * restoreAllItems = new QAction(tr("restore all removed comics"),this); - QAction * restoreItems = new QAction(tr("restore removed comics"),this); + //QAction * restoreItems = new QAction(tr("restore removed comics"),this); tableFiles->setContextMenuPolicy(Qt::ActionsContextMenu); tableFiles->addAction(removeItemFromList); @@ -95,7 +95,7 @@ SortVolumeComics::SortVolumeComics(QWidget *parent) : connect(removeItemFromList,SIGNAL(triggered()),this,SLOT(removeSelectedComics())); connect(restoreAllItems,SIGNAL(triggered()),this,SLOT(restoreAllComics())); - connect(restoreItems,SIGNAL(triggered()),this,SLOT(showRemovedComicsSelector())); + //connect(restoreItems,SIGNAL(triggered()),this,SLOT(showRemovedComicsSelector())); } void SortVolumeComics::setData(QList & comics, const QString &json, const QString &vID)