~ubuntu-branches/ubuntu/quantal/transmission/quantal

« back to all changes in this revision

Viewing changes to gtk/tr-torrent.c

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2010-07-24 23:31:01 UTC
  • mfrom: (1.1.37 upstream) (2.1.21 sid)
  • Revision ID: james.westby@ubuntu.com-20100724233101-s1w4xpfbt9g10vxo
Tags: 2.03-0ubuntu1
* New upstream release (LP: #599126) 
* Fixes bugs:
  - duplicate quit confirmation dialog on closing transmission (LP: #603426)
  - disk read/write scheduling (LP: #567181)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: tr-torrent.c 10706 2010-05-30 21:49:39Z charles $
 
2
 * $Id: tr-torrent.c 10885 2010-06-26 21:01:39Z charles $
3
3
 *
4
4
 * Copyright (c) 2006-2008 Transmission authors and contributors
5
5
 *
156
156
static void
157
157
completenessChangedCallback( tr_torrent       * tor,
158
158
                             tr_completeness    completeness,
 
159
                             tr_bool            wasRunning,
159
160
                             void *             user_data )
160
161
{
161
 
    if( ( completeness != TR_LEECH ) && ( tr_torrentStat( tor )->sizeWhenDone != 0 ) )
 
162
    if( wasRunning && ( completeness != TR_LEECH )
 
163
                   && ( tr_torrentStat( tor )->sizeWhenDone != 0 ) )
162
164
        gtr_idle_add( notifyInMainThread, user_data );
163
165
}
164
166