summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-09 03:47:54 +0100
committerhut <hut@lepus.uberspace.de>2014-12-09 03:47:54 +0100
commitbd2bf1db6adab385bc774f841b1fc1d0fecf85c6 (patch)
treed9a12d5fa2b880a90154b5f81d88f5cda207b9eb
parentd0d0a95572528050b9d12759ef468ae4b4155e16 (diff)
downloadranger-bd2bf1db6adab385bc774f841b1fc1d0fecf85c6.tar.gz
core.fm: move a signal binding to a more sensible spot
-rw-r--r--ranger/core/fm.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 6bb4fd22..f6a918b1 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -62,9 +62,6 @@ class FM(Actions, SignalDispatcher):
         self.copy_buffer = set()
         self.do_cut = False
         self.papermanager = PaperManager()
-        self.settings.signal_bind('setopt.papermanager_deep_search',
-                lambda signal: setattr(signal.fm.papermanager, 'deep_search',
-                    signal.value))
 
         try:
             self.username = pwd.getpwuid(os.geteuid()).pw_name
@@ -167,6 +164,10 @@ class FM(Actions, SignalDispatcher):
             self.notify(text, bad=True)
         self.run = Runner(ui=self.ui, logfunc=mylogfunc, fm=self)
 
+        self.settings.signal_bind('setopt.papermanager_deep_search',
+                lambda signal: setattr(signal.fm.papermanager, 'deep_search',
+                    signal.value))
+
     def destroy(self):
         debug = ranger.arg.debug
         if self.ui: