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
1072}1072}
1073 1073
1074void Application::emptyLocalCache() {1074void Application::emptyLocalCache() {
1075 if (auto cache = NetworkAccessManager::getInstance().cache()) {1075 auto assetClient = DependencyManager::get<AssetClient>();
1076 qDebug() << "DiskCacheEditor::clear(): Clearing disk cache.";1076 QMetaObject::invokeMethod(assetClient.data(), "clearCache", Qt::QueuedConnection);
1077 cache->clear();
1078 }
1079}1077}
1080 1078
1081Application::~Application() {1079Application::~Application() {