Option to retry sample downloads that fail with network errors

This commit is contained in:
Bill Somerville 2021-02-18 11:55:32 +00:00
parent ff033b650a
commit 64d501d256
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,12 @@ FileNode::FileNode (QTreeWidgetItem * parent
void FileNode::error (QString const& title, QString const& message)
{
MessageBox::warning_message (treeWidget (), title, message);
if (MessageBox::Retry == MessageBox::warning_message (treeWidget (), title, message
, QString {}, MessageBox::Cancel | MessageBox::Retry
, MessageBox::Cancel))
{
sync (true);
}
}
bool FileNode::sync (bool local)