[Pkg-mozext-commits] [automatic-save-folder] 62/133: Fix : Corrected an exception if no filters was triggered and fall back to use the defined or previous folder, but never defined or used one.
David Prévot
taffit at moszumanska.debian.org
Mon Apr 27 20:33:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch wip
in repository automatic-save-folder.
commit d2fdb644b7eea6694d479b4b54d3cd11c0f1af39
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date: Wed Feb 10 17:54:17 2010 +0000
Fix :
Corrected an exception if no filters was triggered and fall back to use the defined or previous folder, but never defined or used one.
This is a quick fix. I'll correct it better on next releases.
git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@66 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
content/asf_download.js | 6 +++---
content/asf_right_click.js | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/content/asf_download.js b/content/asf_download.js
index 30bdf83..9457b00 100644
--- a/content/asf_download.js
+++ b/content/asf_download.js
@@ -155,7 +155,7 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
{
if ( (keeptemp == false) || ((keeptemp == true) && ( tempdomain != domain )) ) // and, if [same domain not checked] OR [ if same domain (keeptemp) is checked and domain not same as previous one]
{ // then change the destination folder to user choice
- this.set_savepath(defaultfolder);
+ if (defaultfolder != "") this.set_savepath(defaultfolder);
}
else // else, if domain is the same as the last, and the user checked "use the same folder if same domain"
{
@@ -172,7 +172,7 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
{
lastpath = defaultfolder;
}
- this.set_savepath(lastpath);
+ if (lastpah != "") this.set_savepath(lastpath);
}
}
else // else, if savetype == 0 (folder is set to last folder)
@@ -190,7 +190,7 @@ Copyright (C) 2007-2010 Éric Cassar (Cyan).
{
lastpath = defaultfolder;
}
- this.set_savepath(lastpath);
+ if (lastpah != "") this.set_savepath(lastpath);
}
}
else // if a filter is found
diff --git a/content/asf_right_click.js b/content/asf_right_click.js
index bca8d7c..092f43e 100644
--- a/content/asf_right_click.js
+++ b/content/asf_right_click.js
@@ -215,7 +215,7 @@ var automatic_save_folder = {
{
if ( (keeptemp == false) || ((keeptemp == true) && ( tempdomain != domain )) ) // and, if [same domain not checked] OR [ if same domain (keeptemp) is checked and domain not same as previous one]
{ // then change the destination folder to user choice
- this.set_savepath(defaultfolder);
+ if (defaultfolder != "") this.set_savepath(defaultfolder);
}
else // else, if domain is the same as the last, and the user checked "use the same folder if same domain"
{
@@ -232,7 +232,7 @@ var automatic_save_folder = {
{
lastpath = defaultfolder;
}
- this.set_savepath(lastpath);
+ if (lastpath != "") this.set_savepath(lastpath);
}
}
else // else, if savetype == 0 (folder is set to last folder)
@@ -250,7 +250,7 @@ var automatic_save_folder = {
{
lastpath = defaultfolder;
}
- this.set_savepath(lastpath);
+ if (lastpath != "") this.set_savepath(lastpath);
}
}
else // if a filter is found
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/automatic-save-folder.git
More information about the Pkg-mozext-commits
mailing list