~ubuntu-branches/ubuntu/trusty/newsbeuter/trusty-proposed

« back to all changes in this revision

Viewing changes to src/downloadthread.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2008-05-01 14:51:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080501145120-i65avsclnrpl2cfq
Tags: 0.9-1
* New upstream release.
  - Fix problem displaying titles when using zh_CN.UTF-8
    locale (Closes: #471434).
* Add default configuration to set sensible-browser as browser and
  add dirs file to create /etc/newsbeuter (Closes: #470833).
* remove libnxml-depends and libmrss-depends calls in rules and
  related dependency lines in control since they are not needed
  anymore (Closes: #467201).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
namespace newsbeuter
5
5
{
6
6
 
7
 
downloadthread::downloadthread(controller * c) : ctrl(c) {
 
7
downloadthread::downloadthread(controller * c, std::vector<int> * idxs) : ctrl(c) {
 
8
        if (idxs)
 
9
                indexes = *idxs;
8
10
}
9
11
 
10
12
downloadthread::~downloadthread() {
18
20
         */
19
21
        GetLogger().log(LOG_DEBUG, "downloadthread::run: inside downloadthread, reloading all feeds...");
20
22
        if (ctrl->trylock_reload_mutex()) {
21
 
                ctrl->reload_all();
 
23
                if (indexes.size() == 0) {
 
24
                        ctrl->reload_all();
 
25
                } else {
 
26
                        ctrl->reload_indexes(indexes);
 
27
                }
22
28
                ctrl->unlock_reload_mutex();
23
29
        }
24
30
        this->detach();