Revert change in Console::showException() from d0b39ebade7736d47e6b2450bf68b088c0da8e57

This commit is contained in:
David Capello 2021-01-15 11:33:40 -03:00
parent d0b39ebade
commit a3072fba41

View File

@ -177,9 +177,7 @@ void Console::printf(const char* format, ...)
// static
void Console::showException(const std::exception& e)
{
// TODO called from Session::deleteBackup() which is run in background thread
//ui::assert_ui_thread();
ui::assert_ui_thread();
if (!ui::is_ui_thread()) {
LOG(ERROR, "A problem has occurred.\n\nDetails:\n%s\n", e.what());
return;