GH-1015 catch exceptions when doing profile reapply

This is a temporary solution.
This commit is contained in:
Petr Mrázek
2015-05-31 19:59:07 +02:00
parent b9e06b5da0
commit 99f248ecd4
3 changed files with 28 additions and 16 deletions

View File

@ -82,9 +82,12 @@ public:
/// clear the profile
void clear();
/// apply the patches
/// apply the patches. Throws all sorts of errors.
void reapply();
/// apply the patches. Catches all the errors and returns true/false for success/failure
bool reapplySafe();
/// do a finalization step (should always be done after applying all patches to profile)
void finalize();