[patch] [update] ktexteditor avoid multiple deletion; make qAddPostRoutine play well with K_GLOBAL_STATIC

Jarosław Staniek js at iidea.pl
Sat Apr 12 00:13:13 BST 2008


for review; (update for [patch] KTextEditorFactoryList: make qAddPostRoutine 
play well with K_GLOBAL_STATIC [2008-04-11 15:16])

Example: KWrite uses KTextEditor::EditorChooser::editor(), what in turn calls 
KTextEditor::editor("katepart") for each new editor window, always with the 
same part name.

Solution: Use QSet (KTextEditorFactorySet) instead of QList to avoid multiple 
deletion of the same factory object.

-- 
regards / pozdrawiam, Jaroslaw Staniek
   Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
   Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
   KDE Libraries for MS Windows (http://windows.kde.org)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ktexteditor2.patch
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080412/e66088dc/attachment.ksh>


More information about the kde-core-devel mailing list