mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Show the correct name in the title of the RsCollectionDialog when the filename contains ".".
Fixed creating of the download path of the collection when running as portable version. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4715 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a7ab09e453
commit
ac9e35160b
@ -33,7 +33,7 @@ RsCollectionDialog::RsCollectionDialog(const QString& CollectionFileName,const s
|
||||
{
|
||||
setupUi(this) ;
|
||||
|
||||
setWindowTitle(QString("%1 - %2").arg(windowTitle()).arg(QFileInfo(_filename).baseName()));
|
||||
setWindowTitle(QString("%1 - %2").arg(windowTitle()).arg(QFileInfo(_filename).completeBaseName()));
|
||||
|
||||
// 1 - add all elements to the list.
|
||||
|
||||
@ -175,7 +175,7 @@ void RsCollectionDialog::download()
|
||||
QString cleanPath = dldir + _dlinfos[i].path ;
|
||||
std::cerr << "making directory " << cleanPath.toStdString() << std::endl;
|
||||
|
||||
if(!QDir(cleanPath).mkpath(cleanPath))
|
||||
if(!QDir(QApplication::applicationDirPath()).mkpath(cleanPath))
|
||||
QMessageBox::warning(NULL,QObject::tr("Unable to make path"),QObject::tr("Unable to make path:")+"<br> "+cleanPath) ;
|
||||
|
||||
rsFiles->FileRequest(_dlinfos[i].name.toUtf8().constData(), _dlinfos[i].hash.toUtf8().constData(), _dlinfos[i].size, cleanPath.toUtf8().constData(), RS_FILE_HINTS_NETWORK_WIDE, std::list<std::string>());
|
||||
|
Loading…
Reference in New Issue
Block a user