X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fselectremotedlg.cpp;h=8b1085efb5f51be3a4262782dbf0aeeb2f354223;hb=8fdb5505afc67545658908bc0305a5ff7f695a3a;hp=ec435c69049352cf4cb8f88c679f92b00df9f906;hpb=64044a9126665e058ddbcaa725c6a50b2188903a;p=irwi diff --git a/src/selectremotedlg.cpp b/src/selectremotedlg.cpp index ec435c6..8b1085e 100644 --- a/src/selectremotedlg.cpp +++ b/src/selectremotedlg.cpp @@ -18,6 +18,7 @@ SelectRemoteDlg::SelectRemoteDlg(QWidget *parent) : QDialog(parent) { + onlinePollerThread = NULL; this->setWindowTitle(tr("Select remote")); this->setMinimumHeight(320); @@ -55,7 +56,8 @@ SelectRemoteDlg::~SelectRemoteDlg() { delete layout; if (onlinePollerThread != NULL) { - onlinePollerThread->quit(); + onlinePollerThread->stop(); + onlinePollerThread->wait(); delete onlinePollerThread; onlinePollerThread = NULL; } @@ -117,7 +119,8 @@ void SelectRemoteDlg::downloadRemote() void SelectRemoteDlg::getDB() { if (onlinePollerThread != NULL) { - onlinePollerThread->quit(); + onlinePollerThread->stop(); + onlinePollerThread->wait(); delete onlinePollerThread; onlinePollerThread = NULL; }