mirror of
https://github.com/transmission/transmission.git
synced 2026-04-18 07:56:33 +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( )
|
MakeDialog :: onFolderClicked( )
|
||||||
{
|
{
|
||||||
QFileDialog * d = new QFileDialog( this, tr( "Select Folder" ) );
|
QFileDialog * d = new QFileDialog( this, tr( "Select Folder" ) );
|
||||||
d->setFileMode( QFileDialog::Directory );
|
d->setFileMode( QFileDialog::DirectoryOnly );
|
||||||
connect( d, SIGNAL(filesSelected(const QStringList&)),
|
connect( d, SIGNAL(filesSelected(const QStringList&)),
|
||||||
this, SLOT(onFolderSelected(const QStringList&)) );
|
this, SLOT(onFolderSelected(const QStringList&)) );
|
||||||
d->show( );
|
d->show( );
|
||||||
@@ -215,7 +215,7 @@ void
|
|||||||
MakeDialog :: onDestinationClicked( )
|
MakeDialog :: onDestinationClicked( )
|
||||||
{
|
{
|
||||||
QFileDialog * d = new QFileDialog( this, tr( "Select Folder" ) );
|
QFileDialog * d = new QFileDialog( this, tr( "Select Folder" ) );
|
||||||
d->setFileMode( QFileDialog::Directory );
|
d->setFileMode( QFileDialog::DirectoryOnly );
|
||||||
connect( d, SIGNAL(filesSelected(const QStringList&)),
|
connect( d, SIGNAL(filesSelected(const QStringList&)),
|
||||||
this, SLOT(onDestinationSelected(const QStringList&)) );
|
this, SLOT(onDestinationSelected(const QStringList&)) );
|
||||||
d->show( );
|
d->show( );
|
||||||
|
|||||||
Reference in New Issue
Block a user