[gnome-maps] MainWindow: Abort if no search results was found
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] MainWindow: Abort if no search results was found
- Date: Fri, 30 Aug 2013 14:37:29 +0000 (UTC)
commit 34daf30d23cc25bac1f8a351db0644ddc25381e9
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Fri Aug 30 14:58:36 2013 +0200
MainWindow: Abort if no search results was found
Commit: 8102fe2 MainWindow: Bold string matches in search popup,
removed the check for when no search results were found.
Lets reinstate it.
https://bugzilla.gnome.org/show_bug.cgi?id=706724
src/mainWindow.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 169ab04..dc64b76 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -259,6 +259,11 @@ const MainWindow = new Lang.Class({
_showSearchResults: function(places) {
let model = this._searchPopup.getModel();
+ if (places === null) {
+ this._searchPopup.hide();
+ return;
+ }
+
// Lower case to match case insensitive
let searchStringLower = this._searchEntry.text.toLowerCase();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]