[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [konsole/Applications/16.12] src: Fix Save Output as -> HTML
From:       Kurt Hindenburg <kurt.hindenburg () gmail ! com>
Date:       2016-11-24 14:47:45
Message-ID: E1c9vJR-0004RX-At () code ! kde ! org
[Download RAW message or body]

Git commit 019dde3e04b792f6643aa2993ed293aadbe4cd55 by Kurt Hindenburg.
Committed on 24/11/2016 at 14:42.
Pushed by hindenburg into branch 'Applications/16.12'.

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)

M  +2    -1    src/SessionController.cpp

https://commits.kde.org/konsole/019dde3e04b792f6643aa2993ed293aadbe4cd55

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