[trunk] we need a Qt message handler to catch crashes originating from Q_ASSERT more quickly
I am developing on Windows, so I don't know whether this is such an issue on other platforms.
When the application fails due to a Q_ASSERT, for example doing a QList::last on an empty list, the debugger belonging to the Qt IDE doesn't catch the crash. Countless hours can be wasted to find the cause.
With the enclosed patch, a handler is installed in debug mode which allows to set a breakpoint and catch the crash in no time.