summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/icon-preview.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-07-26 00:34:37 +0000
committerJon A. Cruz <jon@joncruz.org>2010-07-26 00:34:37 +0000
commitc5a6fcc6b89ec6afe90d1dd2289182580145f9cf (patch)
treed6cdd27fcda3377a7416dbe03f67f2863851e214 /src/ui/dialog/icon-preview.cpp
parentAdded debug info. (diff)
downloadinkscape-c5a6fcc6b89ec6afe90d1dd2289182580145f9cf.tar.gz
inkscape-c5a6fcc6b89ec6afe90d1dd2289182580145f9cf.zip
Added preference to suppress auto-refresh of icon previews.
(bzr r9651)
Diffstat (limited to 'src/ui/dialog/icon-preview.cpp')
-rw-r--r--src/ui/dialog/icon-preview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/icon-preview.cpp b/src/ui/dialog/icon-preview.cpp
index c8f5d2c2e..cbd276994 100644
--- a/src/ui/dialog/icon-preview.cpp
+++ b/src/ui/dialog/icon-preview.cpp
@@ -300,7 +300,7 @@ void IconPreviewPanel::setDesktop( SPDesktop* desktop )
this->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();
}
}