SelectRemoteDlg::SelectRemoteDlg(QWidget *parent)
: QDialog(parent)
{
+ onlinePollerThread = NULL;
this->setWindowTitle(tr("Select remote"));
this->setMinimumHeight(320);
{
delete layout;
if (onlinePollerThread != NULL) {
- onlinePollerThread->quit();
+ onlinePollerThread->stop();
+ onlinePollerThread->wait();
delete onlinePollerThread;
onlinePollerThread = NULL;
}
void SelectRemoteDlg::getDB()
{
if (onlinePollerThread != NULL) {
- onlinePollerThread->quit();
+ onlinePollerThread->stop();
+ onlinePollerThread->wait();
delete onlinePollerThread;
onlinePollerThread = NULL;
}