summaryrefslogtreecommitdiff
path: root/debian/patches/Initialize-numfiles-in-dragNdrop-and-allow-more-than.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/Initialize-numfiles-in-dragNdrop-and-allow-more-than.patch')
-rw-r--r--debian/patches/Initialize-numfiles-in-dragNdrop-and-allow-more-than.patch89
1 files changed, 0 insertions, 89 deletions
diff --git a/debian/patches/Initialize-numfiles-in-dragNdrop-and-allow-more-than.patch b/debian/patches/Initialize-numfiles-in-dragNdrop-and-allow-more-than.patch
deleted file mode 100644
index e67de7c..0000000
--- a/debian/patches/Initialize-numfiles-in-dragNdrop-and-allow-more-than.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From: Paul Gevers <elbrus@debian.org>
-Date: Sun, 25 May 2014 12:58:07 +0200
-Subject: Initialize numfiles in dragNdrop and allow more than 100 files
-
- - Drag and drop numfiles was not initialised. Could contain random
- number, not actual files dragged and dropped
- - max number of jobs was not being incremented on dragdrop
- - hints improved
-Bug: http://code.google.com/p/winff/issues/detail?id=209
-Source: http://code.google.com/p/winff/source/detail?r=820
----
- unit1.pas | 24 ++++++++++++++++++++++--
- 1 file changed, 22 insertions(+), 2 deletions(-)
-
-diff --git a/unit1.pas b/unit1.pas
-index 979b51e..390bb3e 100755
---- a/unit1.pas
-+++ b/unit1.pas
-@@ -346,6 +346,7 @@ type
-
- var
- PresetList,CategoryList,DestinationList,FileInfoList :TstringList;
-+ NumberofJobs : Integer;
-
- // New in 1.5 //
- // This array holds entries for each item in the filelist
-@@ -430,7 +431,9 @@ currentpreset: string;
- multipreset:string;
-
- begin
-- setLength(scr,100); // 1.5 By default limit jobs to 100;
-+ numberofjobs := 100;
-+ setLength(scr,numberofjobs); // 1.5 By default limit jobs to 100;
-+
-
- CategoryList := tstringlist.Create;
- PresetList := tstringlist.Create;
-@@ -1609,11 +1612,18 @@ begin
- SaveChangedOptions(0); // second time to save the command lines to the array (SCR)
- filelist.itemindex := FileList.Count -1;
- GenerateCommandLines(filelist.Count -1);
-+ // Fix for
-+ if numberofjobs - filelist.count < 5 then
-+ begin
-+ numberofjobs := numberofjobs + 50;
-+ setLength(scr,numberofjobs);
-+ end;
- end;
- if filelist.itemindex > -1 then
- begin
- filelist.itemindex := FileList.Count -1 // select most recently added job
- end;
-+ filelist.hint := 'Number of jobs in queue: ' + IntTostr(filelist.count);
- if multipresets then pnlAllow.Visible := False;
- end;
-
-@@ -1647,6 +1657,15 @@ begin
-
- s := dlgOpenFile.files[i];
- u := s;
-+
-+ // Fix for Issue 209
-+ if numberofjobs - filelist.count < 5 then
-+ begin
-+ numberofjobs := numberofjobs + 50;
-+ setLength(scr,numberofjobs);
-+ end;
-+
-+
- //t := GetFileInfo(u); Todo -> if I ever get a nice way to read file resolution & codec
- filelist.items.Add(s);
- FileInfoList.add(u);
-@@ -1657,6 +1676,7 @@ begin
- end;
- //filelist.items.AddStrings(dlgOpenFile.Files);
- end;
-+ filelist.hint := 'Number of jobs in queue: ' + IntTostr(filelist.count);
- if multipresets then pnlAllow.Visible := False;
- end;
-
-@@ -1858,7 +1878,7 @@ begin
- if (lstIndex >= 0) and (lstIndex <= Items.Count) then
- Hint := FileInfoList.Strings[lstIndex]
- else
-- Hint := ''
-+ Hint := 'Number of Files: ' + IntToStr(filelist.count);
- end;
- {$endif}
-