~ubuntu-branches/ubuntu/raring/ktorrent/raring

« back to all changes in this revision

Viewing changes to libktcore/torrent/torrentfilelistmodel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-09-03 05:12:03 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100903051203-b0tvug5rgdoylclb
Tags: 4.0.3-0ubuntu1
* New upstream bugfix release
  - Bump libktorrent-dev build dependency to 1.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
                        if (tc->getStats().multi_file_torrent)
198
198
                        {
199
199
                                bt::TorrentFileInterface & file = tc->getTorrentFile(index.row());
 
200
                                
 
201
                                // Check if we are not changing into somebody elses path
 
202
                                bt::Uint32 num_files = tc->getNumFiles();
 
203
                                for (bt::Uint32 i = 0;i < num_files;i++)
 
204
                                {
 
205
                                        if ((int)i == index.row())
 
206
                                                continue;
 
207
                                        
 
208
                                        if (path == tc->getTorrentFile(i).getUserModifiedPath())
 
209
                                                return false;
 
210
                                }
 
211
                                        
200
212
                                // keep track of modified paths
201
 
                                file.setUserModifiedPath(path); 
 
213
                                file.setUserModifiedPath(path);
202
214
                        }
203
215
                        else
204
216
                        {