Only index the database when a valid uuid is present.

Refresh the database when a PS Vita is connected.
This commit is contained in:
codestation
2013-12-19 20:53:27 -04:30
parent ee9237197d
commit b67af3b9d2
4 changed files with 18 additions and 6 deletions

View File

@@ -106,8 +106,13 @@ void ClientManager::start()
void ClientManager::refreshDatabase()
{
if(!db.reload()) {
emit messageSent(tr("Cannot refresh the database while is in use"));
bool prepared;
if(!db.reload(prepared)) {
if(prepared) {
emit messageSent(tr("Cannot refresh the database while is in use"));
} else {
emit messageSent(tr("No PS Vita system has been registered"));
}
} else {
progress.show();
}