[kdevplatform/1.2] language/duchain/navigation: Properly keep track of start context to prevent deletion of it while browsing
Milian Wolff
mail at milianw.de
Tue Feb 15 09:53:20 UTC 2011
Git commit cdff3a767679ab4e0dc77a14677f07213db1cb66 by Milian Wolff.
Committed on 15/02/2011 at 10:51.
Pushed by mwolff into branch '1.2'.
Properly keep track of start context to prevent deletion of it while browsing
This seems to be the correct fix that does not require API changes
CCMAIL: kdevelop-devel at kdevelop.org
BUG: 266116
M +4 -0 language/duchain/navigation/abstractnavigationwidget.cpp
http://commits.kde.org/kdevplatform/cdff3a767679ab4e0dc77a14677f07213db1cb66
diff --git a/language/duchain/navigation/abstractnavigationwidget.cpp b/language/duchain/navigation/abstractnavigationwidget.cpp
index aef3eb3..f517c23 100644
--- a/language/duchain/navigation/abstractnavigationwidget.cpp
+++ b/language/duchain/navigation/abstractnavigationwidget.cpp
@@ -115,6 +115,10 @@ void AbstractNavigationWidget::setContext(NavigationContextPointer context, int
}
if(context == m_context && (!context || context->alreadyComputed()))
return;
+
+ if (!m_startContext)
+ m_startContext = m_context;
+
m_context = context;
update();
More information about the KDevelop-devel
mailing list