mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
don't connect to selected objects unless selection is homogenous
This commit is contained in:
parent
634babbeb7
commit
678d5fd710
1 changed files with 7 additions and 4 deletions
|
@ -489,10 +489,6 @@ app_update_selection (App * app)
|
||||||
app->selected_objects = info.objects;
|
app->selected_objects = info.objects;
|
||||||
app->n_selected = info.n;
|
app->n_selected = info.n;
|
||||||
|
|
||||||
for (cur = app->selected_objects; cur; cur = cur->next) {
|
|
||||||
connect_to_object (cur->data, app);
|
|
||||||
}
|
|
||||||
|
|
||||||
type = G_TYPE_NONE;
|
type = G_TYPE_NONE;
|
||||||
if (app->selected_objects) {
|
if (app->selected_objects) {
|
||||||
type = G_TYPE_FROM_INSTANCE (app->selected_objects->data);
|
type = G_TYPE_FROM_INSTANCE (app->selected_objects->data);
|
||||||
|
@ -503,6 +499,13 @@ app_update_selection (App * app)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type != G_TYPE_NONE) {
|
||||||
|
for (cur = app->selected_objects; cur; cur = cur->next) {
|
||||||
|
connect_to_object (cur->data, app);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
app->selected_type = type;
|
app->selected_type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue