[gnome-music] Fix #703757 don't compare with translatable string
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Fix #703757 don't compare with translatable string
- Date: Sun, 7 Jul 2013 21:07:15 +0000 (UTC)
commit b68c0f0c86254ab05213a56e3a55e27e5101d507
Author: Manish Sinha <manishsinha ubuntu com>
Date: Sun Jul 7 13:14:05 2013 -0700
Fix #703757 don't compare with translatable string
It is usually not a good idea to use conditional statements
based on Label or any kind of translatable strings.
Compare it with the object instead of title. Title can
change anytime, not the object.
Signed-off-by: Manish Sinha <manishsinha ubuntu com>
src/window.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 1ebb0b5..5a24c5b 100644
--- a/src/window.js
+++ b/src/window.js
@@ -152,7 +152,7 @@ const MainWindow = new Lang.Class({
_onNotifyMode: function(stack, param) {
// Slide out artist list on switching to artists view
- if(stack.get_visible_child().title == "Artists"){
+ if(stack.get_visible_child() == this.views[1]){
stack.get_visible_child().stack.set_visible_child_name("dummy")
stack.get_visible_child().stack.set_visible_child_name("artists")
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]