diff options
author | Slávek Banko <[email protected]> | 2019-01-13 15:27:30 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-13 15:27:30 +0100 |
commit | b1833cf50dace47a755e575b1faa5372b7fb7d1a (patch) | |
tree | 1f2327b8e10f7277922d143e488ec405264ebaba /src | |
parent | cf3bddf185cee68613aebfa784597de29f57257c (diff) | |
download | kbookreader-b1833cf50dace47a755e575b1faa5372b7fb7d1a.tar.gz kbookreader-b1833cf50dace47a755e575b1faa5372b7fb7d1a.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/bookwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bookwidget.cpp b/src/bookwidget.cpp index c645524..7a23d70 100644 --- a/src/bookwidget.cpp +++ b/src/bookwidget.cpp @@ -83,7 +83,7 @@ void BookWidget::openURL(const KURL & url) m_stream.reset(new TQTextStream(&m_file)); m_textLines.reset(new TQStringList); TQString name(encoding()); - TQTextCodec *codec = TQTextCodec::codecForName(encoding()); // get the codec + TQTextCodec *codec = TQTextCodec::codecForName(encoding().latin1()); // get the codec if (codec) m_stream->setCodec(codec); //show progress dialog |