Code

r17510@shi: ted | 2008-01-06 12:48:26 -0800
authorgouldtj <gouldtj@users.sourceforge.net>
Sun, 6 Jan 2008 21:11:39 +0000 (21:11 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Sun, 6 Jan 2008 21:11:39 +0000 (21:11 +0000)
 Changing it so that the timer doesn't go off unless we're in live
 effects mode.  This fixes lp:176608

src/extension/execution-env.cpp

index 72808a096b660170f4c0db7acc348c89b167724e..ea04a8f09ebc50c53388cab386a54c66740c761d 100644 (file)
@@ -121,7 +121,9 @@ ExecutionEnv::killDocCache (void) {
 void
 ExecutionEnv::preferencesChange (void) {
     _timersig.disconnect();
-    _timersig = Glib::signal_timeout().connect(sigc::mem_fun(this, &ExecutionEnv::preferencesTimer), 100, Glib::PRIORITY_DEFAULT_IDLE);
+       if (_livePreview) {
+               _timersig = Glib::signal_timeout().connect(sigc::mem_fun(this, &ExecutionEnv::preferencesTimer), 100, Glib::PRIORITY_DEFAULT_IDLE);
+       }
     return;
 }