mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Option to retry sample downloads that fail with network errors
This commit is contained in:
parent
ff033b650a
commit
64d501d256
@ -27,7 +27,12 @@ FileNode::FileNode (QTreeWidgetItem * parent
|
|||||||
|
|
||||||
void FileNode::error (QString const& title, QString const& message)
|
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)
|
bool FileNode::sync (bool local)
|
||||||
|
Loading…
Reference in New Issue
Block a user