Fix addnewtorrentdialog position

Fix messageBox position
This commit is contained in:
Chocobo1 2015-10-26 15:45:14 +08:00
parent 7eaa5987c8
commit de54fa2c30
5 changed files with 24 additions and 53 deletions

View file

@ -1163,8 +1163,9 @@ void MainWindow::on_actionOpen_triggered()
// Open File Open Dialog
// Note: it is possible to select more than one file
const QStringList pathsList =
QFileDialog::getOpenFileNames(0, tr("Open Torrent Files"), pref->getMainLastDir(),
QFileDialog::getOpenFileNames(this, tr("Open Torrent Files"), pref->getMainLastDir(),
tr("Torrent Files") + " (*.torrent)");
const bool useTorrentAdditionDialog = AddNewTorrentDialog::isEnabled();
if (!pathsList.isEmpty()) {
foreach (QString file, pathsList) {