From 4b429c74ba983db8d5fcc0d511c574ee4d7c21a5 Mon Sep 17 00:00:00 2001 From: nicholasbishop Date: Thu, 17 Jan 2008 19:21:31 +0000 Subject: [PATCH] Fixed bug in filter effects dialog; incorrect desktop was being used with multiple windows open. --- src/ui/dialog/filter-effects-dialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 06275bf1b..2073a3ea4 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -944,8 +944,6 @@ FilterEffectsDialog::FilterModifier::~FilterModifier() void FilterEffectsDialog::FilterModifier::on_activate_desktop(Application*, SPDesktop* desktop, FilterModifier* me) { - me->update_filters(); - me->_doc_replaced.disconnect(); me->_doc_replaced = desktop->connectDocumentReplaced( sigc::mem_fun(me, &FilterModifier::on_document_replaced)); @@ -954,6 +952,10 @@ void FilterEffectsDialog::FilterModifier::on_activate_desktop(Application*, SPDe me->_resource_changed = sp_document_resources_changed_connect(sp_desktop_document(desktop), "filter", sigc::mem_fun(me, &FilterModifier::update_filters)); + + me->_dialog.setDesktop(desktop); + + me->update_filters(); } -- 2.30.2