mirror of
https://github.com/wf-group/wfview
synced 2026-08-13 17:32:59 -04:00
Use signal/slot do delete queue
This commit is contained in:
parent
6536eab54d
commit
00aef8c8fd
1 changed files with 2 additions and 7 deletions
|
|
@ -148,6 +148,8 @@ wfmain::wfmain(const QString settingsFile, const QString logFile, bool debugMode
|
|||
|
||||
connect(queue,SIGNAL(sendValue(cacheItem)),this,SLOT(receiveValue(cacheItem)));
|
||||
connect(queue,SIGNAL(sendMessage(QString)),this,SLOT(showStatusBarText(QString)));
|
||||
connect(queue, SIGNAL(finished()), queue, SLOT(deleteLater()));
|
||||
|
||||
// We need to populate the list of rigs as early as possible so do it now
|
||||
|
||||
#ifndef Q_OS_LINUX
|
||||
|
|
@ -427,13 +429,6 @@ wfmain::~wfmain()
|
|||
#endif
|
||||
|
||||
logStream->flush();
|
||||
|
||||
// As this is the end of everything, finally delete the queue.
|
||||
if(queue) {
|
||||
qDebug() << "Deleting the queue from within wfmain().";
|
||||
queue->deleteLater();
|
||||
queue=nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void wfmain::closeEvent(QCloseEvent *event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue