summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-05 20:36:42 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-05 20:36:42 +0100
commit384422dd256c49b185042e2b2c639e4d665b2b71 (patch)
tree5f8bf549bc8d98f12fa8f17c06e27155e55505bb
parent6b2ab74c0be25cd58f76d5161b552868e173597c (diff)
downloadkbibtex-384422dd256c49b185042e2b2c639e4d665b2b71.tar.gz
kbibtex-384422dd256c49b185042e2b2c639e4d665b2b71.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 <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/documentlistview.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3b3c30..43d481f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings
-add_definitions( -DHAVE_CONFIG_H -UTQT_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 ) )
{