Enabled modality for appropriate dialogs

Make sure it is impossible to open more than one torrent addition from URL dialog
This commit is contained in:
Christophe Dumez
2010-03-10 20:21:56 +00:00
parent 9202ce8757
commit cc3a6350a5
6 changed files with 15 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ bool file_filter(boost::filesystem::path const& filename)
createtorrent::createtorrent(QWidget *parent): QDialog(parent){
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
setModal(true);
creatorThread = new torrentCreatorThread(this);
connect(creatorThread, SIGNAL(creationSuccess(QString, const char*)), this, SLOT(handleCreationSuccess(QString, const char*)));
connect(creatorThread, SIGNAL(creationFailure(QString)), this, SLOT(handleCreationFailure(QString)));