From 361c74fe71cc69df8feba546204c93099e6b22b8 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Sat, 5 Nov 2016 14:00:28 +0100 Subject: Fix change between multiples LPE in the same item (bzr r15212) --- src/ui/dialog/livepatheffect-editor.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index 4d60d610e..9bd4c093e 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -546,18 +546,8 @@ void LivePathEffectEditor::on_effect_selection_changed() LivePathEffect::LPEObjectReference * lperef = (*it)[columns.lperef]; if (lperef && current_lpeitem && current_lperef != lperef) { - //The last condition ignore Gtk::TreeModel may occasionally be changed emitted when nothing has happened - Glib::RefPtr model = effectlist_view.get_model(); - Gtk::TreeNodeChildren childs = model->children(); - Gtk::TreeNodeChildren::iterator row; - bool removed = true; - for( row = childs.begin() ; row!=childs.end(); ++row) - { - if ( (*row)[columns.lperef] == current_lperef ) { - removed = false; - } - } - if (!removed && lperef->lpeobject->get_lpe()) { + //The last condition ignore Gtk::TreeModel may occasionally be changed emitted when nothing has happened + if (lperef->getObject()) { lpe_list_locked = true; // prevent reload of the list which would lose selection current_lpeitem->setCurrentPathEffect(lperef); current_lperef = lperef; -- cgit v1.2.3