summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-01 22:32:50 +0200
committerhut <hut@lavabit.com>2011-10-01 22:32:50 +0200
commit03d7f28e1e73a61e4d3524eec26bbab441295fdf (patch)
tree7cf22b9e0460537d2702c48129fe2c7a83780bf8
parent524cbddab36206d3e6f13d50d30c2289bfcde722 (diff)
downloadranger-03d7f28e1e73a61e4d3524eec26bbab441295fdf.tar.gz
core.shared: silence a warning when using ranger as root
-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',
href='#n132'>132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197