traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/commands AudioClipExternalProcessi...


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/commands AudioClipExternalProcessi...
Date: Mon, 02 Jul 2007 19:16:48 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/07/02 19:16:48

Modified files:
        src/commands   : AudioClipExternalProcessing.cpp 

Log message:
        document how the program is detected and used, remove whitespaces from 
program lineedit 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/commands/AudioClipExternalProcessing.cpp?cvsroot=traverso&r1=1.16&r2=1.17

Patches:
Index: AudioClipExternalProcessing.cpp
===================================================================
RCS file: 
/sources/traverso/traverso/src/commands/AudioClipExternalProcessing.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- AudioClipExternalProcessing.cpp     2 Jul 2007 17:10:28 -0000       1.16
+++ AudioClipExternalProcessing.cpp     2 Jul 2007 19:16:48 -0000       1.17
@@ -232,7 +232,8 @@
 {
        m_arguments.clear();
        
-       if (m_program.right(3) == "sox") {
+       // On mac os x (and perhaps windows) the full path is given, so we 
check if the path contains sox!
+       if (m_program.contains("sox")) {
                m_arguments.append("-S");
        }
        
@@ -254,7 +255,8 @@
 {
        if (m_queryOptions) {
                QString result = m_processor->readAllStandardOutput();
-               if (m_program.right(3) == "sox") {
+               // On mac os x (and perhaps windows) the full path is given, so 
we check if the path contains sox!
+               if (m_program.contains("sox")) {
                        QStringList list = result.split("\n");
                        foreach(QString string, list) {
                                if (string.contains("Supported effects:") || 
string.contains("effect:") || string.contains("SUPPORTED EFFECTS:")) {
@@ -348,7 +350,7 @@
 
 void ExternalProcessingDialog::command_lineedit_text_changed(const QString & 
text)
 {
-       m_program = text;
+       m_program = text.simplified();
        if (m_program == "sox") {
                #if defined (Q_WS_MAC)
                        m_program = qApp->applicationDirPath() + "/sox";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]