Showing the changes to interface/src/ui/AnimationsDialog.cpp (1 of 4 files). Show all
Unified · Split
| @@ -148,8 +148,8 @@ AnimationPanel::AnimationPanel(AnimationsDialog* dialog, const AnimationHandlePo · 147 unmodified lines | |||
| 148 | buttons->addWidget(remove); | 148 | buttons->addWidget(remove); |
| 149 | connect(remove, SIGNAL(clicked(bool)), SLOT(removeHandle())); | 149 | connect(remove, SIGNAL(clicked(bool)), SLOT(removeHandle())); |
| 150 | 150 | ||
| 151 | connect(_handle.data(), SIGNAL(runningChanged(bool)), SLOT(updateStartStop())); | 151 | _stop->connect(_handle.data(), SIGNAL(runningChanged(bool)), SLOT(setEnabled(bool))); |
| 152 | updateStartStop(); | 152 | _stop->setEnabled(_handle->isRunning()); |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | void AnimationPanel::chooseURL() { | 155 | void AnimationPanel::chooseURL() { |
| @@ -185,11 +185,6 @@ void AnimationPanel::chooseMaskedJoints() { · 29 unmodified lines | |||
| 185 | } | 185 | } |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | void AnimationPanel::updateStartStop() { | ||
| 189 | _start->setEnabled(!_handle->isRunning()); | ||
| 190 | _stop->setEnabled(_handle->isRunning()); | ||
| 191 | } | ||
| 192 | |||
| 193 | void AnimationPanel::updateHandle() { | 188 | void AnimationPanel::updateHandle() { |
| 194 | _handle->setRole(_role->currentText()); | 189 | _handle->setRole(_role->currentText()); |
| 195 | _handle->setURL(_url->text()); | 190 | _handle->setURL(_url->text()); |