History

Fix manually entered animation URL not being able to be started

David Rowe committed 11 years ago

Commit 082a9191 parent fff4c041 file · +2 −2Browse files

Showing the changes to interface/src/ui/AnimationsDialog.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ui/AnimationsDialog.cpp+2−2
@@ -96,7 +96,7 @@ AnimationPanel::AnimationPanel(AnimationsDialog* dialog, const AnimationHandlePo · 95 unmodified lines
96 QHBoxLayout* urlBox = new QHBoxLayout();96 QHBoxLayout* urlBox = new QHBoxLayout();
97 layout->addRow("URL:", urlBox);97 layout->addRow("URL:", urlBox);
98 urlBox->addWidget(_url = new QLineEdit(handle->getURL().toString()), 1);98 urlBox->addWidget(_url = new QLineEdit(handle->getURL().toString()), 1);
99 connect(_url, SIGNAL(returnPressed()), SLOT(updateHandle()));99 connect(_url, SIGNAL(editingFinished()), SLOT(updateHandle()));
100 QPushButton* chooseURL = new QPushButton("Choose");100 QPushButton* chooseURL = new QPushButton("Choose");
101 urlBox->addWidget(chooseURL);101 urlBox->addWidget(chooseURL);
102 connect(chooseURL, SIGNAL(clicked(bool)), SLOT(chooseURL()));102 connect(chooseURL, SIGNAL(clicked(bool)), SLOT(chooseURL()));
@@ -168,7 +168,7 @@ void AnimationPanel::chooseURL() { · 65 unmodified lines
168 }168 }
169 _animationDirectory.set(QFileInfo(filename).path());169 _animationDirectory.set(QFileInfo(filename).path());
170 _url->setText(QUrl::fromLocalFile(filename).toString());170 _url->setText(QUrl::fromLocalFile(filename).toString());
171 emit _url->returnPressed();171 emit _url->editingFinished();
172}172}
173 173
174void AnimationPanel::chooseMaskedJoints() {174void AnimationPanel::chooseMaskedJoints() {