Translations:Development/Tutorials/Saving and loading/45/en

From KDE TechBase

The rest of the work happens in the downloadFinished() slot. First, the job is checked for errors. If it failed, we display a message box giving the error. We also make sure to clear the fileName, since the file wasn't opened successfully: