forked from blue/squawk
started progress bars, changed gcc standard to 17
This commit is contained in:
parent
a0348b8fd2
commit
50bb3f5fd7
6 changed files with 96 additions and 8 deletions
|
@ -302,7 +302,7 @@ void Models::MessageFeed::downloadAttachment(const QString& messageId)
|
|||
QModelIndex ind = modelIndexById(messageId);
|
||||
if (ind.isValid()) {
|
||||
std::pair<Progress::iterator, bool> progressPair = downloads.insert(std::make_pair(messageId, 0));
|
||||
if (!progressPair.second) { //Only to take action if we weren't already downloading it
|
||||
if (progressPair.second) { //Only to take action if we weren't already downloading it
|
||||
Shared::Message* msg = static_cast<Shared::Message*>(ind.internalPointer());
|
||||
emit dataChanged(ind, ind);
|
||||
emit fileLocalPathRequest(messageId, msg->getOutOfBandUrl());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue