diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-11-06 02:00:22 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-11-06 02:00:22 +0100 |
commit | 1ae603d7a9e7029f6918927738e44f4488d3f4ad (patch) | |
tree | 9479399facae06f8171995c2b97992cad4c9c2c8 /src/configuredialog.cpp | |
parent | bf279c7e8cd09ab3aa55327314b368af589e9e19 (diff) | |
download | tdepowersave-1ae603d7a9e7029f6918927738e44f4488d3f4ad.tar.gz tdepowersave-1ae603d7a9e7029f6918927738e44f4488d3f4ad.zip |
Fix improper use of TQString::ascii().
This resolves issue #4.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/configuredialog.cpp')
-rw-r--r-- | src/configuredialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |