commit daada078a2f88918f4f9cb55bf8e50aa44884601
parent d7dc47f3f5ff75776a1d22815c0ce944e6a51190
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 17 Jan 2011 15:48:05 +0000
fix file import bug
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js
@@ -666,7 +666,6 @@ Zotero.Translate.Base.prototype = {
return;
}
var oldState = this._currentState;
- this._currentState = null;
this._waitForCompletion = false;
var errorString = null;
@@ -689,9 +688,12 @@ Zotero.Translate.Base.prototype = {
// more translators to try; proceed to next translator
this._detect();
} else {
+ this._currentState = null;
this._runHandler("translators", this._foundTranslators ? this._foundTranslators : false);
}
- } else {
+ } else {
+ this._currentState = null;
+
if(returnValue) {
this._debug("Translation successful");
} else {