History

Temporary fix to disk cache editor crash

Atlante45 committed 10 years ago

Commit 40d307a1 parent 2c176254 files · +16 −8Browse files

Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Application.cpp+2−4
@@ -1072,10 +1072,8 @@ void Application::cleanupBeforeQuit() { · 1071 unmodified lines
10721072 }
10731073
10741074 void Application::emptyLocalCache() {
1075− if (auto cache = NetworkAccessManager::getInstance().cache()) {
1076− qDebug() << "DiskCacheEditor::clear(): Clearing disk cache.";
1077− cache->clear();
1078− }
1075+ auto assetClient = DependencyManager::get<AssetClient>();
1076+ QMetaObject::invokeMethod(assetClient.data(), "clearCache", Qt::QueuedConnection);
10791077 }
10801078
10811079 Application::~Application() {