[kupfer] data: Don't add object in find_object if already selected
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] data: Don't add object in find_object if already selected
- Date: Thu, 17 Sep 2009 19:23:15 +0000 (UTC)
commit c3bdfa314275e08c3852eaf7de378f95e85a2cdc
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Sep 17 00:23:21 2009 +0200
data: Don't add object in find_object if already selected
kupfer/data.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/data.py b/kupfer/data.py
index b87dde2..178bb23 100644
--- a/kupfer/data.py
+++ b/kupfer/data.py
@@ -1009,7 +1009,7 @@ class DataController (gobject.GObject, pretty.OutputMixin):
sc = GetSourceController()
qf = qfurl.qfurl(url=url)
found = qf.resolve_in_catalog(sc.sources)
- if found:
+ if found and not found == self.source_pane.get_selection():
self.emit("pane-reset", SourcePane, search.wrap_rankable(found))
# pane cleared or set with new item
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]