diff --git a/cmaevent.cpp b/cmaevent.cpp index afae735..d93eb97 100644 --- a/cmaevent.cpp +++ b/cmaevent.cpp @@ -608,9 +608,12 @@ void CmaEvent::vitaEventGetSettingInfo(vita_event_t *event, int eventId) qDebug("Current account id: %s", settingsinfo->current_account.accountId); QSettings settings; + + // Always refresh the account name + settings.setValue("lastOnlineId", settingsinfo->current_account.userName); + if(settings.value("lastAccountId").toString() != settingsinfo->current_account.accountId) { - db->setUUID(settingsinfo->current_account.accountId); - settings.setValue("lastOnlineId", settingsinfo->current_account.userName); + db->setUUID(settingsinfo->current_account.accountId); // set the database to be updated ASAP emit refreshDatabase(); } diff --git a/cmarootobject.cpp b/cmarootobject.cpp index eb9c6a1..7e22b4e 100644 --- a/cmarootobject.cpp +++ b/cmarootobject.cpp @@ -99,6 +99,10 @@ void CMARootObject::initObject(const QString &path) this->path = QDir(QDir(path).absoluteFilePath("SYSTEM")).absoluteFilePath(uuid); num_filters = 0; } + + // create the backup directories + QDir dir(this->path); + dir.mkpath(dir.absolutePath()); } CMARootObject::~CMARootObject()