summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-09 16:06:12 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-09 16:06:12 +0100
commit2a7cf2dd00e5106e8287239f9d4ac17287ecd84f (patch)
tree5cc1d03e89ab0f7f45ad090fcf260786542e0b37 /src
parent67992a8d8336bfdad3e585e8405e0162fccfaebe (diff)
downloadtastymenu-2a7cf2dd00e5106e8287239f9d4ac17287ecd84f.tar.gz
tastymenu-2a7cf2dd00e5106e8287239f9d4ac17287ecd84f.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>
Diffstat (limited to 'src')
-rw-r--r--src/menuhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menuhandler.cpp b/src/menuhandler.cpp
index d3a4a79..2c4f29c 100644
--- a/src/menuhandler.cpp
+++ b/src/menuhandler.cpp
@@ -845,9 +845,9 @@ void MenuHandler::populateList( KServiceGroup *serviceGroup, TastyListView *list
TQString subText= TQString();
if( !isSeparator )
{
- if( s->comment() != NULL && !s->comment().isEmpty() )
+ if( !s->comment().isNull() && !s->comment().isEmpty() )
subText = s->comment();
- else if( s->genericName() && !s->genericName().isEmpty() )
+ else if( !s->genericName().isNull() && !s->genericName().isEmpty() )
subText = s->genericName();
}