From 2b25c31a243d45690d7e4db690fe2f50a3c7bbc4 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 18 Mar 2010 23:50:27 -0700 Subject: [PATCH] Fixed missing palette when using file open on a new document. --- src/ui/dialog/swatches.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp index 76ceb1514..6f013f4f3 100644 --- a/src/ui/dialog/swatches.cpp +++ b/src/ui/dialog/swatches.cpp @@ -610,7 +610,6 @@ void SwatchesPanel::setDesktop( SPDesktop* desktop ) _documentConnection = desktop->connectDocumentReplaced( slot2 ); _setDocument( desktop->doc() ); - handleGradientsChange( desktop->doc() ); } else { _setDocument(0); } @@ -709,6 +708,7 @@ void SwatchesPanel::_setDocument( SPDocument *document ) if ( document != _currentDocument ) { _trackDocument(this, document); _currentDocument = document; + handleGradientsChange( document ); } } -- 2.30.2