Diffusion Krita b1e29a825814

Fix two logic issues in kis_assert_common

Authored by rempt on May 15 2020, 9:44 AM.

Description

Fix two logic issues in kis_assert_common

  • kis_assert_recoverable should be recoverable, i.e., it shouldn't

call qFatal or throw an exception, so the isIgnorable parameter
should be true

  • Because the button parameter was set to QMessageBox::Abort if

isIgnorable is false, the first condition would be true for all
non-recoverable asserts, which means that in practice, the exception
would never been thrown, because the button == QMessageBox::Abort
would always be true.