mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-29 15:12:13 +00:00
parent
3f8e76ce93
commit
77b3a0c4cd
@ -1028,6 +1028,7 @@ void MainWindow::on_actionOpen_triggered()
|
|||||||
QFileDialog::getOpenFileNames(0, tr("Open Torrent Files"), pref->getMainLastDir(),
|
QFileDialog::getOpenFileNames(0, tr("Open Torrent Files"), pref->getMainLastDir(),
|
||||||
tr("Torrent Files") + QString::fromUtf8(" (*.torrent)"));
|
tr("Torrent Files") + QString::fromUtf8(" (*.torrent)"));
|
||||||
const bool useTorrentAdditionDialog = Preferences::instance()->useAdditionDialog();
|
const bool useTorrentAdditionDialog = Preferences::instance()->useAdditionDialog();
|
||||||
|
if (!pathsList.isEmpty()) {
|
||||||
foreach (QString file, pathsList) {
|
foreach (QString file, pathsList) {
|
||||||
qDebug("Dropped file %s on download list", qPrintable(file));
|
qDebug("Dropped file %s on download list", qPrintable(file));
|
||||||
if (useTorrentAdditionDialog)
|
if (useTorrentAdditionDialog)
|
||||||
@ -1040,6 +1041,7 @@ void MainWindow::on_actionOpen_triggered()
|
|||||||
QStringList top_dir = Utils::Fs::fromNativePath(pathsList.at(0)).split("/");
|
QStringList top_dir = Utils::Fs::fromNativePath(pathsList.at(0)).split("/");
|
||||||
top_dir.removeLast();
|
top_dir.removeLast();
|
||||||
pref->setMainLastDir(Utils::Fs::fromNativePath(top_dir.join("/")));
|
pref->setMainLastDir(Utils::Fs::fromNativePath(top_dir.join("/")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::activate()
|
void MainWindow::activate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user