From e24c18fcd9bf2a2d044cd39f84941265294e03c4 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 3 Feb 2011 22:13:31 +0000 Subject: [PATCH] (trunk qt) in the "new torrent" dialog, have the "save to" and "source folder" file dialogs be QFileDialog::DirectoryOnly rather than QFileDialog::Directory --- qt/make-dialog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/make-dialog.cc b/qt/make-dialog.cc index b4757a0ec..407642a3f 100644 --- a/qt/make-dialog.cc +++ b/qt/make-dialog.cc @@ -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( );