From 1ae603d7a9e7029f6918927738e44f4488d3f4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 6 Nov 2019 02:00:22 +0100 Subject: Fix improper use of TQString::ascii(). This resolves issue #4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/configuredialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configuredialog.cpp') diff --git a/src/configuredialog.cpp b/src/configuredialog.cpp index 0cdf498..a767508 100644 --- a/src/configuredialog.cpp +++ b/src/configuredialog.cpp @@ -155,7 +155,7 @@ void ConfigureDialog::setSchemeList(){ cB_batteryScheme->clear(); for ( TQStringList::Iterator it = schemes.begin(); it != schemes.end(); ++it ) { - const char *_tmp = (*it).ascii(); + const char *_tmp = (*it).utf8(); if((*it) == "Performance" || (*it) == i18n("Performance")) { listBox_schemes->insertItem(SmallIcon("scheme_power", TQIconSet::Automatic), i18n(_tmp)); cB_acScheme->insertItem(i18n(_tmp)); @@ -1291,7 +1291,7 @@ void ConfigureDialog::setInactivityBox(){ // actions.append("Turn Off Computer"); for ( TQStringList::Iterator it = actions.begin(); it != actions.end(); ++it ) { - cB_autoInactivity->insertItem( i18n( (*it).ascii() ) ); + cB_autoInactivity->insertItem( i18n( (*it).utf8() ) ); } kdDebugFuncOut(trace); -- cgit v1.2.1