(trunk qt) in the "new torrent" dialog, have the "save to" and "source folder" file dialogs be QFileDialog::DirectoryOnly rather than QFileDialog::Directory

This commit is contained in:
Jordan Lee 2011-02-03 22:13:31 +00:00
parent 11d60307cf
commit e24c18fcd9
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ void
MakeDialog :: onFolderClicked( )
{
QFileDialog * d = new QFileDialog( this, tr( "Select Folder" ) );
d->setFileMode( QFileDialog::Directory );
d->setFileMode( QFileDialog::DirectoryOnly );
connect( d, SIGNAL(filesSelected(const QStringList&)),
this, SLOT(onFolderSelected(const QStringList&)) );
d->show( );
@ -215,7 +215,7 @@ void
MakeDialog :: onDestinationClicked( )
{
QFileDialog * d = new QFileDialog( this, tr( "Select Folder" ) );
d->setFileMode( QFileDialog::Directory );
d->setFileMode( QFileDialog::DirectoryOnly );
connect( d, SIGNAL(filesSelected(const QStringList&)),
this, SLOT(onDestinationSelected(const QStringList&)) );
d->show( );