summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-11-24 21:54:08 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2013-11-24 21:54:08 +0200
commitd9181d20ec01d4c102eeffeb3eaab63b865036f0 (patch)
treef40d22bd7ffe5cbb4eeb597a0db65368f7146aad
parentedf62d83c9832b14c5abbceb6cd980d560042616 (diff)
Fix an error when searching.
Timer doesn't have a method called cancel().
-rw-r--r--valosoitin/gui/info.py2
-rw-r--r--valosoitin/gui/searchresults.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/valosoitin/gui/info.py b/valosoitin/gui/info.py
index cb42417..2846eca 100644
--- a/valosoitin/gui/info.py
+++ b/valosoitin/gui/info.py
@@ -93,7 +93,7 @@ class AudioInfo(elm.Box):
93 if entry.entry: 93 if entry.entry:
94 s = entry.entry 94 s = entry.entry
95 if self.t: 95 if self.t:
96 self.t.cancel() 96 self.t.delete()
97 if len(s) > 2: 97 if len(s) > 2:
98 parent.search(s, self.search_cb) 98 parent.search(s, self.search_cb)
99 #elif event.keyname == "Escape": 99 #elif event.keyname == "Escape":
diff --git a/valosoitin/gui/searchresults.py b/valosoitin/gui/searchresults.py
index d3c86cb..889bf46 100644
--- a/valosoitin/gui/searchresults.py
+++ b/valosoitin/gui/searchresults.py
@@ -90,7 +90,7 @@ class Results(elm.InnerWindow):
90 if entry.entry: 90 if entry.entry:
91 s = entry.entry 91 s = entry.entry
92 if self.t: 92 if self.t:
93 self.t.cancel() 93 self.t.delete()
94 if len(s) > 2: 94 if len(s) > 2:
95 parent.search(s, self.search_cb) 95 parent.search(s, self.search_cb)
96 elif event.keyname == "Escape": 96 elif event.keyname == "Escape":