summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorllunak <llunak@fairy.suse.cz>2008-10-22 12:12:58 +0200
committerllunak <llunak@fairy.suse.cz>2008-10-22 12:12:58 +0200
commitc55e8fec90ef11230cd01875891a78450b03b98b (patch)
tree5a6f0d7443e598eea39c89a8fe228805103878c5
parent8e7f60271edad3cfff75ee08ffd898f53b50c43f (diff)
downloadsimple-ccsm-kde-c55e8fec90ef11230cd01875891a78450b03b98b.tar.gz
simple-ccsm-kde-c55e8fec90ef11230cd01875891a78450b03b98b.tar.bz2
Don't use ccsGetStringArrayFromValueList(), it's broken on 64bit.
-rw-r--r--dialog.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/dialog.cpp b/dialog.cpp
index e013628..4d08ad5 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -739,15 +739,9 @@ QString Dialog::listStringOption( CCSSetting* s )
{
CCSSettingValueList l;
ccsGetList( s, &l );
- int num;
QString retval;
- char** val = ccsGetStringArrayFromValueList( l, &num );
- if ( l != NULL)
- {
- if (num >= 1)
- retval = val[ 0 ];
- free( val );
- }
+ if( ccsSettingValueListLength( l ) >= 1 )
+ retval = l->data->value.asString;
return retval;
}