On Tuesday January 06 2015 11:36:18 René J.V. Bertin wrote:

> And then the hackers' delight question:
> Staring at the code at almost 3am this morning it occurred to me that there 
> is nothing wrong per se if QAction::isEnabled() returns false if the d 
> pointer is NULL (an invalid QAction cannot/shouldn't be enabled), so I 
> changed `return d->enabled` to `return d? d->enabled : false;` . Haven't seen 
> the crash occur since ...

The question here is of course: how wrong is that approach?

R.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to