[Kde-imaging] [Bug 131284] CD archiving writes faulty k3b project files
Angelo Naselli
anaselli at linux.it
Sun Jul 30 19:43:21 CEST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=131284
------- Additional Comments From anaselli linux it 2006-07-30 19:43 -------
SVN commit 567951 by anaselli:
CCBUG: 131284
Fixed the case in which under the same tag there are two files with similar name but some upper case letters using HTML interface.
M +7 -2 cdarchiving.cpp
--- trunk/extragear/libs/kipi-plugins/cdarchiving/cdarchiving.cpp #567950:567951
@ -790,7 +790,7 @
++urlIt)
{
QFileInfo imInfo( (*urlIt).fileName());
- QString imgName = makeFileNameUnique(fileNameList, imInfo.baseName(TRUE));
+ QString imgName = makeFileNameUnique(fileNameList, webifyFileName(imInfo.baseName(TRUE)));
}
for( KURL::List::iterator urlIt = images.begin() ;
!m_cancelled && (urlIt != images.end());
@ -1690,6 +1690,7 @
KURL::List images = collection.images();
kdDebug( 51000 ) << " Files: " << images.size() << endl;
QStringList fileNameList;
+ QString fName;
for (KURL::List::iterator it = images.begin();
(it != images.end()) && !m_cancelled;
++it)
@ -1697,8 +1698,12 @
kdDebug( 51000 ) << " Filename: " << (*it).fileName() << endl;
QFileInfo fInfo((*it).fileName());
- QString fName = makeFileNameUnique(fileNameList, fInfo.baseName(TRUE))
+ if (m_useHTMLInterface)
+ fName = makeFileNameUnique(fileNameList, webifyFileName(fInfo.baseName(TRUE)))
+ "." + fInfo.extension( FALSE );
+ else
+ fName = makeFileNameUnique(fileNameList, fInfo.baseName(TRUE))
+ + "." + fInfo.extension( FALSE );
kdDebug( 51000 ) << " Unique filename: " << fName << endl;
kdDebug( 51000 ) << "num of unique files: "<< fileNameList.size() << endl;
More information about the Kde-imaging
mailing list