mirror of
https://github.com/transmission/transmission.git
synced 2026-04-17 23:54:19 +01:00
#4664 "Use completeBaseName() instead of baseName() in the 'New Torrent' dialog" -- patch contributed by cantabile
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user