fixed keyframe UI issue when disabling keyframes
This commit is contained in:
@@ -60,11 +60,6 @@ bool EffectRow::IsKeyframing() {
|
||||
}
|
||||
|
||||
void EffectRow::SetKeyframingInternal(bool b) {
|
||||
// No need to run this function if the keyframing state isn't actually changing.
|
||||
if (b == keyframing_) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetParentEffect()->meta->type != EFFECT_TYPE_TRANSITION) {
|
||||
keyframing_ = b;
|
||||
emit KeyframingSetChanged(keyframing_);
|
||||
@@ -127,7 +122,6 @@ void EffectRow::SetKeyframingEnabled(bool enabled) {
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
SetKeyframingInternal(true);
|
||||
|
||||
}
|
||||
|
||||
@@ -76,16 +76,15 @@ void SourceIconView::dropEvent(QDropEvent* event) {
|
||||
}
|
||||
|
||||
void SourceIconView::mouseDoubleClickEvent(QMouseEvent *) {
|
||||
bool default_behavior = true;
|
||||
if (selectedIndexes().size() == 1) {
|
||||
Media* m = project_parent->item_to_media(selectedIndexes().at(0));
|
||||
if (m->get_type() == MEDIA_TYPE_FOLDER) {
|
||||
default_behavior = false;
|
||||
setRootIndex(selectedIndexes().at(0));
|
||||
emit changed_root();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (default_behavior) {
|
||||
commons_.mouseDoubleClickEvent(selectedIndexes());
|
||||
}
|
||||
|
||||
// Double click was not a folder, so we perform the default behavior (sending the double click to SourcesCommon)
|
||||
commons_.mouseDoubleClickEvent(selectedIndexes());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user