Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug-mode Qt Designer crashed when tried to instantiate a ctkMatrixWidget because of an assert failure. It may be useful to know that some operations fail, but making the Qt Designer crash is a too strong way of notifying developers (especially when developers only use CTK and not intend to fix its potential internal errors). Fixed by adding a new CTK_VALIDATE macro that just logs a warning instead of crashing in debug mode and does nothing in release mode. It should be possible to use this macro instead of Q_ASSSERT where crashing the application in unexpected situations should be avoided.
- Loading branch information