From b92ec55a79df65a1153362dad2837001476e71ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 1 Jun 2011 09:06:40 +0000 Subject: [PATCH] closes #57 --- swisssurfer/src/browser.hxx | 4 ++++ swisssurfer/src/swisssurfer_de.ts | 10 +++++----- swisssurfer/src/swisssurfer_en.ts | 10 +++++----- swisssurfer/src/swisssurfer_fr.ts | 10 +++++----- swisssurfer/src/swisssurfer_it.ts | 10 +++++----- 5 files changed, 24 insertions(+), 20 deletions(-) diff --git a/swisssurfer/src/browser.hxx b/swisssurfer/src/browser.hxx index d7f7c9d..1003ada 100644 --- a/swisssurfer/src/browser.hxx +++ b/swisssurfer/src/browser.hxx @@ -1029,6 +1029,10 @@ class Browser: public QMainWindow, protected Ui::Browser { LOG<<"URL:"<url().toString(); LOG<<"File:"<url().toLocalFile(); LOG<<"Path:"<url().path(); + if (reply->error()!=QNetworkReply::NoError) { + LOG<<"Error:"<<_downloadManager.networkError(reply->error()); + return; + } QString filename (QString::fromUtf8(reply->rawHeader("Content-Disposition"))); if (filename.contains diff --git a/swisssurfer/src/swisssurfer_de.ts b/swisssurfer/src/swisssurfer_de.ts index fef278a..05e1225 100644 --- a/swisssurfer/src/swisssurfer_de.ts +++ b/swisssurfer/src/swisssurfer_de.ts @@ -346,17 +346,17 @@ Compiled: qt-%5 - + Save File As ... - + authentication required - + ssl error @@ -582,12 +582,12 @@ p, li { white-space: pre-wrap; } QMessageBox - + Wrong PIN - + Authentication failed, please try again. diff --git a/swisssurfer/src/swisssurfer_en.ts b/swisssurfer/src/swisssurfer_en.ts index fef278a..05e1225 100644 --- a/swisssurfer/src/swisssurfer_en.ts +++ b/swisssurfer/src/swisssurfer_en.ts @@ -346,17 +346,17 @@ Compiled: qt-%5 - + Save File As ... - + authentication required - + ssl error @@ -582,12 +582,12 @@ p, li { white-space: pre-wrap; } QMessageBox - + Wrong PIN - + Authentication failed, please try again. diff --git a/swisssurfer/src/swisssurfer_fr.ts b/swisssurfer/src/swisssurfer_fr.ts index fef278a..05e1225 100644 --- a/swisssurfer/src/swisssurfer_fr.ts +++ b/swisssurfer/src/swisssurfer_fr.ts @@ -346,17 +346,17 @@ Compiled: qt-%5 - + Save File As ... - + authentication required - + ssl error @@ -582,12 +582,12 @@ p, li { white-space: pre-wrap; } QMessageBox - + Wrong PIN - + Authentication failed, please try again. diff --git a/swisssurfer/src/swisssurfer_it.ts b/swisssurfer/src/swisssurfer_it.ts index fef278a..05e1225 100644 --- a/swisssurfer/src/swisssurfer_it.ts +++ b/swisssurfer/src/swisssurfer_it.ts @@ -346,17 +346,17 @@ Compiled: qt-%5 - + Save File As ... - + authentication required - + ssl error @@ -582,12 +582,12 @@ p, li { white-space: pre-wrap; } QMessageBox - + Wrong PIN - + Authentication failed, please try again.