Changeset 13106


Ignore:
Timestamp:
Dec 10, 2011, 6:45:21 PM (10 years ago)
Author:
jordan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/make-dialog.cc

    r12697 r13106  
    8383    // progress label
    8484    const QString top = QString::fromLocal8Bit( myBuilder->top );
    85     const QString base( QFileInfo(top).baseName() );
     85    const QString base( QFileInfo(top).completeBaseName() );
    8686    QString str;
    8787    if( !b->isDone )
     
    149149    // the file to create
    150150    const QString path = QString::fromLocal8Bit( myBuilder->top );
    151     const QString torrentName = QFileInfo(path).baseName() + QString::fromAscii(".torrent");
     151    const QString torrentName = QFileInfo(path).completeBaseName() + QString::fromAscii(".torrent");
    152152    myTarget = QDir( myDestination ).filePath( torrentName );
    153153    std::cerr << qPrintable(myTarget) << std::endl;
Note: See TracChangeset for help on using the changeset viewer.