Hey Magnus,

2010/12/3 Magnus Arntzen <[email protected]>:
> Actually, this alone gives fatal errors:
>
> WRegExp rx("Hello(World"); //by purpose give an unmatched unescaped
> parenthesis
>
> Before I can check validity with rx.isValid(), the session is destroyed.
> [error] Error during event handling: Unmatched ( or \(
> [fatal] Unmatched ( or \(
>
> Suggestions? Is this a bug, or do I need to test the user input before
> passed to WSortFilterProxyModel->setFilterRegExp() ?

I've fixed WRegExp so that passing it an invalid regular expession
makes isValid() return false but does not throw an exception.

Regards,
koen

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to