summaryrefslogtreecommitdiff
path: root/SampleDownloader/FileNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SampleDownloader/FileNode.cpp')
-rw-r--r--SampleDownloader/FileNode.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/SampleDownloader/FileNode.cpp b/SampleDownloader/FileNode.cpp
index 66864287..e274dc5a 100644
--- a/SampleDownloader/FileNode.cpp
+++ b/SampleDownloader/FileNode.cpp
@@ -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)