From: Jon A. Cruz Date: Mon, 26 Jul 2010 00:34:37 +0000 (-0700) Subject: Added preference to suppress auto-refresh of icon previews. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7732f14a82b1ea4d3a2597cb77706ba380b49729;p=inkscape.git Added preference to suppress auto-refresh of icon previews. --- diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index cabb13d47..32f4b7c35 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -392,6 +392,7 @@ static char const preferences_skeleton[] = "\n" " desktop = Panel::getDesktop(); if ( this->desktop ) { docReplacedConn = this->desktop->connectDocumentReplaced(sigc::hide<0>(sigc::mem_fun(this, &IconPreviewPanel::setDocument))); - if (this->desktop->selection) { + if ( this->desktop->selection && Inkscape::Preferences::get()->getBool("/iconpreview/autoRefresh", true) ) { selChangedConn = desktop->selection->connectChanged(sigc::hide(sigc::mem_fun(this, &IconPreviewPanel::queueRefresh))); } } @@ -316,7 +316,9 @@ void IconPreviewPanel::setDocument( SPDocument *document ) this->document = document; if (this->document) { - docModConn = this->document->connectModified(sigc::hide(sigc::mem_fun(this, &IconPreviewPanel::queueRefresh))); + if ( Inkscape::Preferences::get()->getBool("/iconpreview/autoRefresh", true) ) { + docModConn = this->document->connectModified(sigc::hide(sigc::mem_fun(this, &IconPreviewPanel::queueRefresh))); + } queueRefresh(); } }