Changeset View
Changeset View
Standalone View
Standalone View
language/codegen/applychangeswidget.cpp
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | |||||
195 | void ApplyChangesWidget::indexChanged(int newIndex) | 195 | void ApplyChangesWidget::indexChanged(int newIndex) | ||
196 | { | 196 | { | ||
197 | Q_ASSERT(newIndex != -1); | 197 | Q_ASSERT(newIndex != -1); | ||
198 | d->m_index = newIndex; | 198 | d->m_index = newIndex; | ||
199 | } | 199 | } | ||
200 | 200 | | |||
201 | void ApplyChangesWidget::updateDiffView(int index) | 201 | void ApplyChangesWidget::updateDiffView(int index) | ||
202 | { | 202 | { | ||
203 | int prevIndex = d->m_index; | | |||
204 | d->m_index = index == -1 ? d->m_index : index; | 203 | d->m_index = index == -1 ? d->m_index : index; | ||
205 | d->m_index = prevIndex; | | |||
206 | } | 204 | } | ||
207 | 205 | | |||
208 | } | 206 | } | ||
209 | 207 | |