Changeset View
Changeset View
Standalone View
Standalone View
plugins/contextbrowser/contextbrowserview.cpp
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Line(s) | |||||
260 | { | 260 | { | ||
261 | DUChainReadLocker lock(DUChain::lock(), 200); | 261 | DUChainReadLocker lock(DUChain::lock(), 200); | ||
262 | if (!lock.locked()) { | 262 | if (!lock.locked()) { | ||
263 | QWidget::showEvent(event); | 263 | QWidget::showEvent(event); | ||
264 | return; | 264 | return; | ||
265 | } | 265 | } | ||
266 | 266 | | |||
267 | TopDUContext* top = m_lastUsedTopContext.data(); | 267 | TopDUContext* top = m_lastUsedTopContext.data(); | ||
268 | if(top && m_navigationWidgetDeclaration.isValid() && m_navigationWidgetDeclaration.getDeclaration(top)) { | 268 | if(top && m_navigationWidgetDeclaration.isValid()) { | ||
269 | if(top) { | | |||
270 | //Update the navigation-widget | 269 | //Update the navigation-widget | ||
271 | Declaration* decl = m_navigationWidgetDeclaration.getDeclaration(top); | 270 | Declaration* decl = m_navigationWidgetDeclaration.getDeclaration(top); | ||
271 | if(decl) | ||||
272 | setDeclaration(decl, top, true); | 272 | setDeclaration(decl, top, true); | ||
273 | } | 273 | } | ||
274 | } | | |||
275 | QWidget::showEvent(event); | 274 | QWidget::showEvent(event); | ||
276 | } | 275 | } | ||
277 | 276 | | |||
278 | bool ContextBrowserView::isLocked() const { | 277 | bool ContextBrowserView::isLocked() const { | ||
279 | bool isLocked; | 278 | bool isLocked; | ||
280 | if (m_allowLockedUpdate) { | 279 | if (m_allowLockedUpdate) { | ||
281 | isLocked = false; | 280 | isLocked = false; | ||
282 | } else { | 281 | } else { | ||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |