mirror of
https://github.com/transmission/transmission.git
synced 2026-04-02 08:33:11 +01: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:
@@ -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( );
|
||||
|
||||
Reference in New Issue
Block a user