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