[gnome-maps] MainWindow: Clear search results on changes to text entry
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] MainWindow: Clear search results on changes to text entry
- Date: Sat, 17 Aug 2013 19:51:37 +0000 (UTC)
commit bc85b22d007c7750b253f86c2d5369bd11bb41f8
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Aug 17 22:07:52 2013 +0300
MainWindow: Clear search results on changes to text entry
src/mainWindow.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 29b4b83..44376b2 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -220,6 +220,8 @@ const MainWindow = new Lang.Class({
this._searchBox.model.get_value(iter,
SearchResults.COL_LOCATION);
this.mapView.showLocation(location);
+ } else {
+ this._searchBox.model.clear();
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]