summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2016-11-20 15:22:57 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2016-11-24 14:42:43 (GMT)
commit019dde3e04b792f6643aa2993ed293aadbe4cd55 (patch)
tree1d6dfaa08f92d34f0a6c29af44dadbce3ca029a3
parentd28afb6664459cf28d73d7617b74c49711ce7a86 (diff)
Fix Save Output as -> HTML
I don't see how this ever worked - not the best solution but it works now. (cherry picked from commit 1ba498b22429fff302c060a7a18cf8f7e611953d)
-rw-r--r--src/SessionController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SessionController.cpp b/src/SessionController.cpp
index cc7cbfa..a527e99 100644
--- a/src/SessionController.cpp
+++ b/src/SessionController.cpp
@@ -1736,7 +1736,8 @@ void SaveHistoryTask::execute()
// from.
// this is set to -1 to indicate the job has just been started
- if ((dialog->selectedNameFilter()).contains("html", Qt::CaseInsensitive)) {
+ if (((dialog->selectedNameFilter()).contains("html", Qt::CaseInsensitive)) ||
+ ((dialog->selectedFiles()).at(0).endsWith("html", Qt::CaseInsensitive))) {
jobInfo.decoder = new HTMLDecoder();
} else {
jobInfo.decoder = new PlainTextDecoder();