Show error if creation of the Divelogs.de upload file fails

Previously we simply failed silently without showing the user any
indication that something went wrong. That seems wrong.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-04-28 10:42:54 -07:00
parent ef774032ed
commit 3043114446

View file

@ -648,6 +648,8 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected)
f.remove();
return;
}
} else {
report_error("Failed to create upload file %s\n", qPrintable(filename));
}
MainWindow::instance()->getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
}