From a889ddbf8cc971fd7da1b19335ba374846c90879 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 21 Jan 2003 11:31:03 +0000 Subject: [PATCH] Fix warning message when opening minibuffer (reported by joehill). git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/Edit@2325 66de3db3-b00d-0410-b41b-f4738ad19bea --- EditWindow.py | 7 +++++-- Help/Changes | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/EditWindow.py b/EditWindow.py index 5e5572d..6cb61b0 100644 --- a/EditWindow.py +++ b/EditWindow.py @@ -443,12 +443,13 @@ class EditWindow(g.Window, XDSLoader, Saveable): self.mini_label.set_text(label) def set_minibuffer(self, minibuffer): - assert not minibuffer or isinstance(minibuffer, Minibuffer) + assert minibuffer is None or isinstance(minibuffer, Minibuffer) - self.minibuffer = minibuffer + self.minibuffer = None if minibuffer: self.mini_entry.set_text('') + self.minibuffer = minibuffer minibuffer.setup(self) self.mini_entry.grab_focus() self.mini_hbox.show_all() @@ -467,6 +468,8 @@ class EditWindow(g.Window, XDSLoader, Saveable): return self.minibuffer.key_press(kev) def mini_changed(self, entry): + if not self.minibuffer: + return self.minibuffer.changed() def mini_show_info(self, *unused): diff --git a/Help/Changes b/Help/Changes index da2c6a9..2c49321 100644 --- a/Help/Changes +++ b/Help/Changes @@ -4,6 +4,10 @@ Dnd loading: Loads to cursor, not indicated point. +21-Jan-2003 +~~~~~~~~~~~ +Fix warning message when opening minibuffer (reported by joehill). + 02-Sep-2002 (Release 1.9.0) ~~~~~~~~~~~ Process minibuffer defaults to previous command. -- 2.11.4.GIT