[gnome-shell] remoteSearch: fix scope of a variable
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] remoteSearch: fix scope of a variable
- Date: Tue, 13 Mar 2012 18:25:26 +0000 (UTC)
commit 2fad9d73d4d59699f2602d9a99b0c93ccd1e2a37
Author: Stefano Facchini <stefano facchini gmail com>
Date: Tue Mar 13 18:46:06 2012 +0100
remoteSearch: fix scope of a variable
'title' is used in the catch() block.
js/ui/remoteSearch.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js
index c0aa985..0f77618 100644
--- a/js/ui/remoteSearch.js
+++ b/js/ui/remoteSearch.js
@@ -59,13 +59,13 @@ function loadRemoteSearchProvidersFromDir(dir, addProviderCallback) {
if (!keyfile.has_group(KEY_FILE_GROUP))
continue;
- let remoteProvider;
+ let remoteProvider, title;
try {
let group = KEY_FILE_GROUP;
- let title = keyfile.get_locale_string(group, 'Title', null);
let icon = keyfile.get_string(group, 'Icon');
let busName = keyfile.get_string(group, 'BusName');
let objectPath = keyfile.get_string(group, 'ObjectPath');
+ title = keyfile.get_locale_string(group, 'Title', null);
remoteProvider = new RemoteSearchProvider(title,
icon,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]