mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
parent
3f8e76ce93
commit
77b3a0c4cd
1 changed files with 13 additions and 11 deletions
|
@ -1028,6 +1028,7 @@ void MainWindow::on_actionOpen_triggered()
|
|||
QFileDialog::getOpenFileNames(0, tr("Open Torrent Files"), pref->getMainLastDir(),
|
||||
tr("Torrent Files") + QString::fromUtf8(" (*.torrent)"));
|
||||
const bool useTorrentAdditionDialog = Preferences::instance()->useAdditionDialog();
|
||||
if (!pathsList.isEmpty()) {
|
||||
foreach (QString file, pathsList) {
|
||||
qDebug("Dropped file %s on download list", qPrintable(file));
|
||||
if (useTorrentAdditionDialog)
|
||||
|
@ -1041,6 +1042,7 @@ void MainWindow::on_actionOpen_triggered()
|
|||
top_dir.removeLast();
|
||||
pref->setMainLastDir(Utils::Fs::fromNativePath(top_dir.join("/")));
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::activate()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue