mirror of
https://github.com/transmission/transmission
synced 2025-01-31 11:23:40 +00:00
(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:
parent
11d60307cf
commit
e24c18fcd9
1 changed files with 2 additions and 2 deletions
|
@ -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( );
|
||||
|
|
Loading…
Reference in a new issue