[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [konsole] src: Fix Save Output as -> HTML
From: Kurt Hindenburg <kurt.hindenburg () gmail ! com>
Date: 2016-11-20 15:23:35
Message-ID: E1c8Txv-0007Z2-Te () code ! kde ! org
[Download RAW message or body]
Git commit 1ba498b22429fff302c060a7a18cf8f7e611953d by Kurt Hindenburg.
Committed on 20/11/2016 at 15:22.
Pushed by hindenburg into branch 'master'.
Fix Save Output as -> HTML
I don't see how this ever worked - not the best solution but it works
now.
M +2 -1 src/SessionController.cpp
http://commits.kde.org/konsole/1ba498b22429fff302c060a7a18cf8f7e611953d
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();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic