{
delete layout;
if (onlinePollerThread != NULL) {
- onlinePollerThread->stop();
- onlinePollerThread->wait();
delete onlinePollerThread;
onlinePollerThread = NULL;
}
void SelectRemoteDlg::getDB()
{
if (onlinePollerThread != NULL) {
- onlinePollerThread->stop();
- onlinePollerThread->wait();
delete onlinePollerThread;
onlinePollerThread = NULL;
}
{
setBusy(true);
if (onlinePollerThread != NULL) {
- onlinePollerThread->stop();
- onlinePollerThread->wait();
delete onlinePollerThread;
onlinePollerThread = NULL;
}
onlinePollerThread = new OnlinePollerThread();
connect(onlinePollerThread, SIGNAL(online()),
this, SLOT(getDB()));
- onlinePollerThread->run();
+ onlinePollerThread->start();
}
void SelectRemoteDlg::showEvent(QShowEvent *event)