Revert "Moar threading stuff"
[irwi] / src / selectremotedlg.cpp
index 2ffc121..3f83249 100644 (file)
@@ -111,7 +111,13 @@ void SelectRemoteDlg::downloadRemote()
 void SelectRemoteDlg::refreshDB()
 {
     setBusy(true);
-    remoteDBMgr.getDBAsync();
+    if (onlinePollerThread != NULL) {
+        delete onlinePollerThread;
+    }
+    onlinePollerThread = new OnlinePollerThread();
+    connect(onlinePollerThread, SIGNAL(online()),
+            this, SLOT(getDB()));
+    onlinePollerThread->run();
 }
 
 void SelectRemoteDlg::showEvent(QShowEvent *event)