~xavi-garcia-mena/keeper/sf-errors-dbus-interface

« back to all changes in this revision

Viewing changes to src/storage-framework/sf-uploader.cpp

  • Committer: Xavi Garcia Mena
  • Date: 2016-09-29 08:47:58 UTC
  • mfrom: (107.1.4 the-future-is-exceptional)
  • Revision ID: xavi.garcia.mena@canonical.com-20160929084758-3sw57cpipj34hf81
mergeĀ lp:~charlesk/keeper/the-future-is-exceptional

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    connections_.connect_future(
46
46
        uploader_->finish_upload(),
47
47
        std::function<void(std::shared_ptr<unity::storage::qt::client::File> const&)>{
48
 
            [this](std::shared_ptr<unity::storage::qt::client::File> const& /*file*/){
49
 
                bool success = true; // FIXME
 
48
            [this](std::shared_ptr<unity::storage::qt::client::File> const& file){
 
49
                auto const success = bool(file);
50
50
                qDebug() << "commit finished with" << success;
51
51
                Q_EMIT(commit_finished(success));
52
52
            }