Remove wireless disconnect callback.

Make an interruptable sleep so the USB connection can be aborted more quickly.
Updated translations.
This commit is contained in:
codestation
2014-01-03 16:08:16 -04:30
parent a2468ddf7a
commit 9784332bae
6 changed files with 49 additions and 37 deletions

View File

@@ -65,7 +65,7 @@ void ClientManager::start()
connect(&db, SIGNAL(updated(int)), this, SLOT(databaseUpdated(int)));
connect(&progress, SIGNAL(canceled()), &db, SLOT(cancelOperation()), Qt::DirectConnection);
thread_count = 2;
thread_count = 0;
qDebug("Starting cma threads");
CmaClient *client;
@@ -84,6 +84,7 @@ void ClientManager::start()
client->moveToThread(usb_thread);
usb_thread->start();
thread_count++;
wireless_thread = new QThread();
client = new CmaClient();
@@ -102,6 +103,7 @@ void ClientManager::start()
client->moveToThread(wireless_thread);
wireless_thread->start();
thread_count++;
}
void ClientManager::refreshDatabase()