diff --git a/qt/make-dialog.cc b/qt/make-dialog.cc index f718c8a69..7305a3cc7 100644 --- a/qt/make-dialog.cc +++ b/qt/make-dialog.cc @@ -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;