summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/shared.py b/ranger/core/shared.py
index 38dc7cdd..ce7c3184 100644
--- a/ranger/core/shared.py
+++ b/ranger/core/shared.py
@@ -63,7 +63,8 @@ class SettingsAware(Awareness):
 		settings.signal_bind('setopt.preview_script',
 				after_setting_preview_script, priority=1)
 		def after_setting_use_preview_script(signal):
-			if signal.fm.settings.preview_script is None and signal.value:
+			if signal.fm.settings.preview_script is None and signal.value \
+					and not signal.previous:
 				signal.fm.notify("Preview script undefined or not found!",
 						bad=True)
 		settings.signal_bind('setopt.use_preview_script',