CVS commit by goffioul: Replace "%files" tag in all cases M +9 -6 faxctrl.cpp 1.27 --- kdebase/kdeprint/kdeprintfax/faxctrl.cpp #1.26:1.27 @@ -322,4 +322,13 @@ QString FaxCtrl::pageSize() void FaxCtrl::sendFax() { + if ( m_command.find( "%files" ) != -1 ) + { + // replace %files tag + QString filestr; + for (QStringList::ConstIterator it=m_filteredfiles.begin(); it!=m_filteredfiles.end(); ++it) + filestr += (quote(*it)+" "); + m_command.replace("%files", filestr); + } + if ( !m_faxlist.isEmpty() ) { @@ -370,10 +379,4 @@ void FaxCtrl::filter() else { - // replace %files tag - QString filestr; - for (QStringList::ConstIterator it=m_filteredfiles.begin(); it!=m_filteredfiles.end(); ++it) - filestr += (quote(*it)+" "); - m_command.replace("%files", filestr); - sendFax(); }