diff options
Diffstat (limited to 'sigmodr/widgets/GameUI.cpp')
| -rw-r--r-- | sigmodr/widgets/GameUI.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sigmodr/widgets/GameUI.cpp b/sigmodr/widgets/GameUI.cpp index ab6153ee..75a6a500 100644 --- a/sigmodr/widgets/GameUI.cpp +++ b/sigmodr/widgets/GameUI.cpp @@ -150,7 +150,6 @@ void GameUI::Private::startScriptChanged(const Script& startScript) void GameUI::Private::typechartChanged(const QModelIndex& index) { - m_changing = true; ui_effectiveness->setEnabled(true); ui_labelTypes->setText(QString("%1 vs. %2").arg(m_game->type(index.row())->name()).arg(m_game->type(index.column())->name())); ui_effectiveness->setValue(ui_typechart->model()->data(index, Qt::EditRole).value<Fraction>()); @@ -158,11 +157,6 @@ void GameUI::Private::typechartChanged(const QModelIndex& index) void GameUI::Private::effectivenessChanged(const Fraction& multiplier) { - if (m_changing) - { - m_changing = false; - return; - } ui_typechart->model()->setData(ui_typechart->currentIndex(), QVariant::fromValue(multiplier), Qt::EditRole); emit(changed()); } |
