summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-17 18:56:23 +0100
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-03-18 18:58:54 +0900
commit100ad9bdc292c71d327cbeb633eb9280bea783ac (patch)
treeb7d0d80feeeea595c0b3c29a4c57db79a1ed0804
parentc2aeadd30ff54cdd7482cbc94e6c730657ebc376 (diff)
downloadkstreamripper-100ad9bdc292c71d327cbeb633eb9280bea783ac.tar.gz
kstreamripper-100ad9bdc292c71d327cbeb633eb9280bea783ac.zip
Fix unnecessary automatic ascii conversion.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e61fa2ecc3f7dcbc0486ee80134aff8d7dac1532)
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/kstreamripper.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e35110..632b697 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/kstreamripper.cpp b/src/kstreamripper.cpp
index 2cce434..bfcf09b 100644
--- a/src/kstreamripper.cpp
+++ b/src/kstreamripper.cpp
@@ -218,7 +218,7 @@ void KStreamRipper::serviceRemoved(DNSSD::RemoteService::Ptr srv)
void KStreamRipper::ripButtonClicked()
{
- if (TDEStandardDirs::findExe("streamripper")) {
+ if (!(TDEStandardDirs::findExe("streamripper").isEmpty())) {
ProcessListViewItem * ProcItem = (ProcessListViewItem*)m_streamsListView->currentItem();
ProcItem->getProcessController()->startRip(m_destEdit->text(), m_timeEdit->text());
m_ripButton->setEnabled( false );