Mercurial > hg > svgui
changeset 1560:27f3e64489e1 spectrogram-export
Give timer a parent so as not to leak it
author | Chris Cannam |
---|---|
date | Thu, 09 Jan 2020 14:29:21 +0000 |
parents | e6e7a8dc3b38 |
children | d6f9fac336b3 |
files | view/View.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/view/View.cpp Wed Jan 08 15:29:02 2020 +0000 +++ b/view/View.cpp Thu Jan 09 14:29:21 2020 +0000 @@ -862,7 +862,7 @@ pbr.cancel = cancel; pbr.bar = pb; pbr.lastStallCheckValue = 0; - pbr.stallCheckTimer = new QTimer(); + pbr.stallCheckTimer = new QTimer(this); connect(pbr.stallCheckTimer, SIGNAL(timeout()), this, SLOT(progressCheckStalledTimerElapsed()));