Changeset View
Changeset View
Standalone View
Standalone View
plugins/contextbrowser/contextbrowserview.cpp
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Line(s) | |||||
185 | { | 185 | { | ||
186 | DUChainReadLocker lock(DUChain::lock(), 200); | 186 | DUChainReadLocker lock(DUChain::lock(), 200); | ||
187 | if (!lock.locked()) { | 187 | if (!lock.locked()) { | ||
188 | QWidget::showEvent(event); | 188 | QWidget::showEvent(event); | ||
189 | return; | 189 | return; | ||
190 | } | 190 | } | ||
191 | 191 | | |||
192 | TopDUContext* top = m_lastUsedTopContext.data(); | 192 | TopDUContext* top = m_lastUsedTopContext.data(); | ||
193 | if(top && m_navigationWidgetDeclaration.isValid() && m_navigationWidgetDeclaration.getDeclaration(top)) { | 193 | if(top && m_navigationWidgetDeclaration.isValid()) { | ||
194 | if(top) { | | |||
195 | //Update the navigation-widget | 194 | //Update the navigation-widget | ||
196 | Declaration* decl = m_navigationWidgetDeclaration.getDeclaration(top); | 195 | Declaration* decl = m_navigationWidgetDeclaration.getDeclaration(top); | ||
196 | if(decl) | ||||
197 | setDeclaration(decl, top, true); | 197 | setDeclaration(decl, top, true); | ||
198 | } | 198 | } | ||
199 | } | | |||
200 | QWidget::showEvent(event); | 199 | QWidget::showEvent(event); | ||
201 | } | 200 | } | ||
202 | 201 | | |||
203 | bool ContextBrowserView::isLocked() const { | 202 | bool ContextBrowserView::isLocked() const { | ||
204 | bool isLocked; | 203 | bool isLocked; | ||
205 | if (m_allowLockedUpdate) { | 204 | if (m_allowLockedUpdate) { | ||
206 | isLocked = false; | 205 | isLocked = false; | ||
207 | } else { | 206 | } else { | ||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |