~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/devices/connecteddevice.cpp

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "devicelister.h"
20
20
#include "devicemanager.h"
21
21
#include "core/database.h"
 
22
#include "core/logging.h"
22
23
#include "library/library.h"
23
24
#include "library/librarybackend.h"
24
25
#include "library/librarymodel.h"
39
40
    model_(NULL),
40
41
    song_count_(0)
41
42
{
42
 
  qDebug() << __PRETTY_FUNCTION__;
 
43
  qLog(Info) << "connected" << url << unique_id << first_time;
43
44
 
44
45
  // Create the backend in the database thread.
45
46
  backend_ = new LibraryBackend();
77
78
      Directory dir = backend_->GetAllDirectories()[0];
78
79
      if (dir.path != mount_point) {
79
80
        // The directory is different, commence the munging.
80
 
        qDebug() << "Changing path from" << dir.path << "to" << mount_point;
81
 
        backend_->ChangeDirPath(dir.id, mount_point);
 
81
        qLog(Info) << "Changing path from" << dir.path << "to" << mount_point;
 
82
        backend_->ChangeDirPath(dir.id, dir.path, mount_point);
82
83
      }
83
84
    }
84
85