BUGFIX: Ask for user confirmation for recursive torrent download

BUGFIX: Fix "add file" dialog in torrent creation tool
This commit is contained in:
Christophe Dumez
2010-03-20 11:33:09 +00:00
parent d5b9598b5b
commit 722f2aeb5d
6 changed files with 47 additions and 12 deletions

View File

@@ -85,7 +85,7 @@ void createtorrent::on_addFolder_button_clicked(){
}
void createtorrent::on_addFile_button_clicked(){
QString file = QFileDialog::getOpenFileName(this, tr("Select a file to add to the torrent"), QDir::homePath(), QString(), 0, QFileDialog::ShowDirsOnly);
QString file = QFileDialog::getOpenFileName(this, tr("Select a file to add to the torrent"), QDir::homePath());
if(!file.isEmpty())
textInputPath->setText(file);
}