~chris.gagnon/gallery-app/autopilot-fix-flakyness-and-make-work-on-desktop

« back to all changes in this revision

Viewing changes to src/qml/qml-album-collection-model.cpp

  • Committer: Chris Gagnon
  • Date: 2014-05-02 17:31:46 UTC
  • mfrom: (953.1.10 gallery-app)
  • Revision ID: chris.gagnon@canonical.com-20140502173146-xw3qcr62n538nqxr
fix flakyness, pep8 fixes and make work on desktop

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
QVariant QmlAlbumCollectionModel::createOrphan()
83
83
{
84
84
    Album *album = new Album();
 
85
    album->setNewAlbum(true);
85
86
    album->setAlbumTable(GalleryManager::instance()->database()->getAlbumTable());
86
87
    album->setAlbumTemplate(GalleryManager::instance()->albumDefaultTemplate());
87
88
    return QVariant::fromValue(album);