Skip to content
Permalink
Browse files

Fix stability of moving project to cloud

  • Loading branch information...
dimkanovikov committed May 22, 2019
1 parent 7180a6c commit 1906dc6dbb56f9a57a54f3abf026fcf5d4afa63c
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/bin/scenarist-desktop/ManagementLayer/Import/ImportManager.cpp
@@ -105,6 +105,10 @@ namespace {
// Загрузим данные
//
const QString name = _characterData["name"].toString();
if (name.isEmpty()) {
return;
}

auto* character = DataStorageLayer::StorageFacade::researchStorage()->character(name);
if (character == nullptr) {
character = DataStorageLayer::StorageFacade::researchStorage()->storeCharacter(name);
@@ -128,6 +132,10 @@ namespace {
// Загрузим данные
//
const QString name = _locationData["name"].toString();
if (name.isEmpty()) {
return;
}

auto* location = DataStorageLayer::StorageFacade::researchStorage()->location(name);
if (location == nullptr) {
location = DataStorageLayer::StorageFacade::researchStorage()->storeLocation(name);

0 comments on commit 1906dc6

Please sign in to comment.
You can’t perform that action at this time.