Skip to content

Commit

Permalink
restored model follows uploaded files behaviour (needed for overwrite…
Browse files Browse the repository at this point in the history
… detection)
  • Loading branch information
whoozle committed Feb 25, 2017
1 parent 6a5de27 commit f4e722c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qt/commandqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ void CommandQueue::uploadFile(const QString &filename)
}
try
{
if (_model->parentObjectId() != parent.value()) //needed for overwrite protection
_model->setParent(parent.value());

_model->uploadFile(parent.value(), filename);
} catch(const std::exception &ex)
{ qDebug() << "uploading file " << filename << " failed: " << fromUtf8(ex.what()); }
Expand Down

0 comments on commit f4e722c

Please sign in to comment.