[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/src
From: Mickael Marchand <marchand () kde ! org>
Date: 2005-01-16 13:18:59
Message-ID: 20050116131859.43EC51CECA () office ! kde ! org
[Download RAW message or body]
CVS commit by marchand:
yet another workaround for yzis crashing kdevelop \
(http://bugs.yzis.org/show_bug.cgi?id=77) this patch enables non-wrapped views only \
for yzis+kdevelop so it will not affect kdevelop's normal behavior ;)
if anybody is able to find the reason of this leak, I am _really_ interested ...
Mik
M +3 -3 partcontroller.cpp 1.152
--- kdevelop/src/partcontroller.cpp #1.151:1.152
@@ -541,4 +541,5 @@ KParts::Factory *PartController::findPar
KTextEditor::Editor * PartController::createEditorPart( bool activate )
{
+ activate = true;
if ( !_editorFactory )
@@ -546,4 +547,6 @@ KTextEditor::Editor * PartController::cr
kapp->config()->setGroup("Editor");
QString preferred = \
kapp->config()->readPathEntry("EmbeddedKTextEditor"); + if ( preferred \
!= "kyzispart" ) //if we are not using kyzis => Don't create non-wrapped views for \
now, avoid two paths (== two chances for bad bugs) + activate \
= false;
_editorFactory = findPartFactory( "text/plain", \
"KTextEditor/Document", preferred ); @@ -552,7 +555,4 @@ KTextEditor::Editor * \
PartController::cr }
- // Don't create non-wrapped views for now, avoid two paths (== two chances \
for bad bugs)
- activate = false;
-
return static_cast<KTextEditor::Editor*>( _editorFactory->createPart( \
TopLevel::getInstance()->main(), 0, 0, 0, activate ? "KTextEditor/Editor" : \
"KTextEditor::Document" ) ); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic