88 void PartDownloader::modifyDestination(QString& destination) const |
88 void PartDownloader::modifyDestination(QString& destination) const |
89 { |
89 { |
90 destination = destination.simplified(); |
90 destination = destination.simplified(); |
91 |
91 |
92 // If the user doesn't want us to guess, stop right here. |
92 // If the user doesn't want us to guess, stop right here. |
93 if (not m_config->guessDownloadPaths()) |
93 if (not config::guessDownloadPaths()) |
94 return; |
94 return; |
95 |
95 |
96 // Ensure .dat extension |
96 // Ensure .dat extension |
97 if (destination.right (4) != ".dat") |
97 if (destination.right (4) != ".dat") |
98 { |
98 { |
306 _primaryFile = document; |
306 _primaryFile = document; |
307 } |
307 } |
308 |
308 |
309 QString PartDownloader::downloadPath() |
309 QString PartDownloader::downloadPath() |
310 { |
310 { |
311 QString path = m_config->downloadFilePath(); |
311 QString path = config::downloadFilePath(); |
312 |
312 |
313 if (DIRSLASH[0] != '/') |
313 if (DIRSLASH[0] != '/') |
314 path.replace(DIRSLASH, "/"); |
314 path.replace(DIRSLASH, "/"); |
315 |
315 |
316 return path; |
316 return path; |