diff options
author | Slávek Banko <[email protected]> | 2019-02-05 20:36:42 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-05 20:57:30 +0100 |
commit | 6a2c7f1fed9aa44110d36b427198b6fbc9def330 (patch) | |
tree | 193c1986e09acf4f34f025f6fc95667cfbeba7ec | |
parent | bab126306693a1e069d730e616c9534a2d1ae359 (diff) | |
download | kbibtex-6a2c7f1fed9aa44110d36b427198b6fbc9def330.tar.gz kbibtex-6a2c7f1fed9aa44110d36b427198b6fbc9def330.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]>
(cherry picked from commit 384422dd256c49b185042e2b2c639e4d665b2b71)
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/documentlistview.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9843572..43d481f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ include( ConfigureChecks.cmake ) ###### global compiler settings -add_definitions( -DHAVE_CONFIG_H -UQT_NO_ASCII_CAST ) +add_definitions( -DHAVE_CONFIG_H ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) diff --git a/src/documentlistview.cpp b/src/documentlistview.cpp index 8efabb0..f221b5d 100644 --- a/src/documentlistview.cpp +++ b/src/documentlistview.cpp @@ -659,7 +659,7 @@ namespace KBibTeX TQStrList urlList; if ( TQTextDrag::decode( event, text ) && KURL( text ).isValid() ) - urlList.append( text ); + urlList.append( text.utf8() ); if ( !urlList.isEmpty() || TQUriDrag::decode( event, urlList ) ) { |