Commit f470c94a authored by Joris's avatar Joris
Browse files

Data checks for multiple torrents can now get started at the same time

BUG: 265611
parent 658d48c5
Changes in 4.2:
- Make it possible to check individual files of a torrent
- Data checks for multiple torrents can now get started at the same time (265611)
Changes in 4.1rc1:
- Make sure that apply button of config dialog is enabled properly when the group changes in the scanfolder settings
......
......@@ -401,11 +401,13 @@ namespace kt
{
QList<bt::TorrentInterface*> sel;
getSelection(sel);
if (sel.count() > 0)
foreach (bt::TorrentInterface* tc,sel)
{
core->doDataCheck(sel.front());
core->startUpdateTimer(); // make sure update timer of core is running
if (tc->getStats().status != bt::ALLOCATING_DISKSPACE)
core->doDataCheck(tc);
}
core->startUpdateTimer(); // make sure update timer of core is running
}
void View::showMenu(const QPoint & pos)
......
......@@ -523,17 +523,7 @@ namespace kt
const kt::Group* current_group = current->getGroup();
remove_from_group->setEnabled(current_group && !current_group->isStandardGroup());
groups_menu->setEnabled(group_actions.count() > 0);
if (sel.count() == 1)
{
TorrentInterface* tc = sel.front();
// no data check when we are preallocating diskspace
check_data->setEnabled(tc->getStats().status != bt::ALLOCATING_DISKSPACE);
}
else
{
check_data->setEnabled(false);
}
check_data->setEnabled(sel.count() > 0);
rename_torrent->setEnabled(sel.count() == 1);
data_dir->setEnabled(sel.count() == 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment