branches/kdevelop/3.4/src
Andras Mantia
amantia at kde.org
Thu Sep 7 22:45:01 UTC 2006
SVN commit 581925 by amantia:
Fix the famous XIM crash when during loading of a project the user switches to another application (the backtrace with the KateViewInternal::updateMicroFocusHint).
CCMAIL: kdevelop-devel at kdevelop.org
M +4 -2 editorproxy.cpp
--- branches/kdevelop/3.4/src/editorproxy.cpp #581924:581925
@@ -72,10 +72,12 @@
return;
KURL url = dynamic_cast<KParts::ReadOnlyPart*>( part )->url();
-
ViewCursorInterface *iface = dynamic_cast<ViewCursorInterface*>(part->widget());
if (iface)
- iface->setCursorPositionReal(lineNum, col == -1 ? 0 : col);
+ {
+ if (part->widget()->hasFocus())
+ iface->setCursorPositionReal(lineNum, col == -1 ? 0 : col);
+ }
else {
// Save the position for a rainy day (or when the view gets activated and wants its position)
for (QValueList<MultiBuffer*>::ConstIterator it = m_editorParts.begin(); it != m_editorParts.end(); ++it)
More information about the KDevelop-devel
mailing list