1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-19 04:41:11 +00:00

#4664 "Use completeBaseName() instead of baseName() in the 'New Torrent' dialog" -- patch contributed by cantabile

This commit is contained in:
Jordan Lee 2011-12-10 18:45:21 +00:00
parent 1cfeb4debb
commit 4e2b6f6e9f

View file

@ -82,7 +82,7 @@ MakeDialog :: onProgress( )
// progress label
const QString top = QString::fromLocal8Bit( myBuilder->top );
const QString base( QFileInfo(top).baseName() );
const QString base( QFileInfo(top).completeBaseName() );
QString str;
if( !b->isDone )
str = tr( "Creating \"%1\"" ).arg( base );
@ -148,7 +148,7 @@ MakeDialog :: makeTorrent( )
// the file to create
const QString path = QString::fromLocal8Bit( myBuilder->top );
const QString torrentName = QFileInfo(path).baseName() + QString::fromAscii(".torrent");
const QString torrentName = QFileInfo(path).completeBaseName() + QString::fromAscii(".torrent");
myTarget = QDir( myDestination ).filePath( torrentName );
std::cerr << qPrintable(myTarget) << std::endl;