[Bug 275065] words crashes when closing it

Boudewijn Rempt boud at valdyas.org
Wed Jun 8 10:06:51 BST 2011


On Tuesday 07 June 2011 Jun, Sebastian Sauer wrote:
> https://bugs.kde.org/show_bug.cgi?id=275065

> --- Comment #2 from Sebastian Sauer <mail dipe org>  2011-06-07 22:39:45 ---
> Seems that crash shows a big design-error in Calligra's KDE-UI architecture. In
> fact the KoDocument is responsible for managing the KoMainWindow's (means the
> model controls the view). That's why we cannot easily use a parent-child
> relationship like with following patch but need to proper sync KoDocument's
> manually if KoMainWindow's go out of scope :-/
> 
> While we are on it. It's even that ugly that KoApplication doesn't delete the
> initial KoDocument. Probably that's the reason for those "** (process:28215):
> WARNING **: 1 dictionaries weren't free'd." printed on quit of any calligra
> application.
> 
> Yay :-/
> 

Yes... It's a big design error, and I've already spent quite a bit of time trying to disentangle it. But it's gotten very, very complicated because every application seems to use it in a slightly different, wrong way. Nice consequence of this design is also that splitting the view creates duplicates of all actions... KoMainWindow, KoDocument and KoView are just very, very wrong at the moment.


-- 
Boudewijn Rempt | http://www.valdyas.org, http://www.krita.org



More information about the calligra-devel mailing list