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:
parent
1cfeb4debb
commit
4e2b6f6e9f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue