Mercurial > hg > svgui
diff view/View.cpp @ 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 | bd6af89982d7 |
children | f12c25651f96 |
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()));