[Pkg-mozext-commits] [firetray] 348/399: cleaning

David Prévot taffit at alioth.debian.org
Tue Oct 29 18:24:11 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch dfsg-clean
in repository firetray.

commit 176525867932e527b68e850dc639f8a9085d0273
Author: foudfou <foudil.newbie+git at gmail.com>
Date:   Mon Mar 11 17:02:07 2013 +0100

    cleaning
---
 src/modules/FiretrayHandler.jsm |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/modules/FiretrayHandler.jsm b/src/modules/FiretrayHandler.jsm
index 56eea32..45ef444 100644
--- a/src/modules/FiretrayHandler.jsm
+++ b/src/modules/FiretrayHandler.jsm
@@ -478,13 +478,15 @@ firetray.VersionChangeHandler = {
       this.openBrowserTab(url);
 
     else if (firetray.Handler.appId === FIRETRAY_APP_DB['zotero']['id']) {
-      let win = Services.wm.getMostRecentWindow("navigator:browser");
-      if (!win)
-        log.error("Zotero main-window not found");
-      else
+      let win = null;
+      if (win = Services.wm.getMostRecentWindow("zotero:basicViewer")) {
+        win.loadURI(uri);
+      } else if (win = Services.wm.getMostRecentWindow("navigator:browser")) {
         win.openDialog("chrome://zotero/content/standalone/basicViewer.xul",
                        "basicViewer",
                        "chrome,resizable,centerscreen,menubar,scrollbars", url);
+      } else
+        log.error("Zotero main-window not found");
 
     } else {
       this.openSystemBrowser(url);
@@ -527,6 +529,7 @@ firetray.VersionChangeHandler = {
   },
 
   openSystemBrowser: function(url) {
+    log.debug("openSystemBrowser");
     try {
       var uri = Services.io.newURI(url, null, null);
       var handler = Cc['@mozilla.org/uriloader/external-protocol-service;1']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git



More information about the Pkg-mozext-commits mailing list