From 5687f5c176b2962613ee68f3c752ba207069a7f0 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 23 Apr 2017 04:37:27 +0200 Subject: [PATCH] Allow some time when .rev file is generated before files are overriden (copied over in wizard) There was an issue that the copied over file was afterwards not present --- src/blackgui/components/copyconfigurationcomponent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blackgui/components/copyconfigurationcomponent.cpp b/src/blackgui/components/copyconfigurationcomponent.cpp index c40b0d7d9..facecc278 100644 --- a/src/blackgui/components/copyconfigurationcomponent.cpp +++ b/src/blackgui/components/copyconfigurationcomponent.cpp @@ -10,6 +10,7 @@ #include "ui_copyconfigurationcomponent.h" #include "copyconfigurationcomponent.h" #include "configurationwizard.h" +#include "blackgui/guiapplication.h" #include "blackconfig/buildconfig.h" #include "blackmisc/directoryutils.h" #include "blackmisc/settingscache.h" @@ -24,6 +25,7 @@ using namespace BlackMisc; using namespace BlackMisc::Simulation; using namespace BlackMisc::Simulation::Data; using namespace BlackConfig; +using namespace BlackGui; namespace BlackGui { @@ -344,6 +346,9 @@ namespace BlackGui CLogMessage(this).preformatted(msg); } } + + // allow the cache files to be generated before we will override them + CGuiApplication::processEventsFor(2500); } const CLogCategoryList &CCopyConfigurationWizardPage::getLogCategories()