(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
|
@ -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( );
|
||||||
|
|
Loading…
Reference in New Issue