diff options
author | Chernov V. V <manbornofwoman@gmail.com> | 2012-08-13 02:04:47 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-13 02:04:47 -0500 |
commit | 2ed9e80c54030b811cb2c43d5a14f59a9a0db880 (patch) | |
tree | 3c8408cf56349ed012526f6df54ab044ef8ff49f /audio/easymp3gain/patches/02_filechooser.patch | |
parent | 02a5502f8570edb5b71a568488eaf9e00603ecba (diff) | |
download | slackbuilds-2ed9e80c54030b811cb2c43d5a14f59a9a0db880.tar.gz |
audio/easymp3gain: Added (GUI for mp3gain, aacgain, and vorbisgain)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/easymp3gain/patches/02_filechooser.patch')
-rw-r--r-- | audio/easymp3gain/patches/02_filechooser.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/easymp3gain/patches/02_filechooser.patch b/audio/easymp3gain/patches/02_filechooser.patch new file mode 100644 index 0000000000..386602804f --- /dev/null +++ b/audio/easymp3gain/patches/02_filechooser.patch @@ -0,0 +1,27 @@ +Description: Ignore some files after selecting a directory. + Hidden or not writeable files cause easyMp3Gain to crash sometimes. +Forwarded: yes +Author: Matthias Klumpp <matthias@nlinux.org> +Last-Update: 2010-06-28 + +--- a/unitmain.pas ++++ b/unitmain.pas +@@ -263,6 +263,10 @@ + begin + if (ExtractFileExt(SR.Name)='.'+Extension[i]) and + not ((faDirectory and SR.Attr)=faDirectory) then ++ {$IFDEF Unix} ++ //Check if file is writeable and not hidden ++ if (SR.Name[1]<>'.')and(fpaccess(FilePath + SR.Name ,W_OK)=0) then ++ {$ENDIF} + ListBox.Add(FilePath + SR.Name); + end; + if (SubLevelMax>0) and (((faDirectory or faSymLink) and SR.Attr)=faDirectory) then //Directories +@@ -670,6 +674,7 @@ + sublevels: Byte; + begin + if not SelectDirectoryDialog.Execute then exit; ++ if not DirectoryExists(SelectDirectoryDialog.FileName) then exit; + Application.ProcessMessages; + if Sender=mnuFileAddFolderRecursive then + sublevels := MediaGainOptions.SubLevelCount |