mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
kget: fix transfer size when destination already exists
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5342cc8b3b
commit
293acd88d0
2 changed files with 2 additions and 4 deletions
|
@ -173,9 +173,8 @@ void TransferKio::slotResult( KJob * kioJob )
|
|||
case KIO::ERR_FILE_ALREADY_EXIST: { // The file has already been downloaded.
|
||||
setStatus(Job::Finished);
|
||||
m_percent = 100;
|
||||
m_downloadSpeed = 0;
|
||||
m_downloadedSize = m_totalSize;
|
||||
setTransferChange(Transfer::Tc_Status | Transfer::Tc_Percent | Transfer::Tc_DownloadSpeed, true);
|
||||
m_downloadedSize = m_totalSize = QFile(m_dest.path()).size();
|
||||
setTransferChange(Transfer::Tc_Status | Transfer::Tc_Percent | Transfer::Tc_DownloadedSize | Transfer::Tc_TotalSize, true);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
|
|
@ -225,7 +225,6 @@ void DlgTorrentSettings::loadSettings(const lt::settings_pack <settings)
|
|||
|
||||
// qDebug() << Q_FUNC_INFO << "bool settings";
|
||||
for (int i = 0; i < lt::settings_pack::settings_counts_t::num_bool_settings; i++) {
|
||||
|
||||
const int settingindex = (lt::settings_pack::bool_type_base + i);
|
||||
// qDebug() << Q_FUNC_INFO << lt::name_for_setting(settingindex) << ltsettings.get_bool(settingindex);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue