[banshee] [SearchEntry] Could not re-select a filter after clearing the entry.
- From: Alexander Kojevnikov <alexk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [SearchEntry] Could not re-select a filter after clearing the entry.
- Date: Sat, 12 Sep 2009 09:34:02 +0000 (UTC)
commit b2aaf2b89ac723eaa8da6dda3605d238ab2af74f
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sat Sep 12 19:29:32 2009 +1000
[SearchEntry] Could not re-select a filter after clearing the entry.
Steps to reproduce:
* Select a filter
* Press <Esc> or click "Clear"
* Select the same filter -> the search entry remains empty
.../Banshee.Widgets/Banshee.Widgets/SearchEntry.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs
index 42a693f..d0fc344 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs
@@ -233,12 +233,14 @@ namespace Banshee.Widgets
private void OnClearButtonClicked(object o, EventArgs args)
{
+ active_filter_id = 0;
entry.Text = String.Empty;
}
protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
{
if (evnt.Key == Gdk.Key.Escape) {
+ active_filter_id = 0;
entry.Text = String.Empty;
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]