summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/mainwindow.cpp
authorzecke <zecke>2004-10-26 21:28:59 (UTC)
committer zecke <zecke>2004-10-26 21:28:59 (UTC)
commitae5855babec6e46802be89ee408d26a2cbbb1981 (patch) (unidiff)
tree6aab434ceb2831741b997b93f053e1843c3d59ec /noncore/apps/checkbook/mainwindow.cpp
parentc95aeb8fd283fe9d2f220209e696726120857257 (diff)
downloadopie-ae5855babec6e46802be89ee408d26a2cbbb1981.zip
opie-ae5855babec6e46802be89ee408d26a2cbbb1981.tar.gz
opie-ae5855babec6e46802be89ee408d26a2cbbb1981.tar.bz2
-Remove usage of latin1() as a possible fix to #1471
Diffstat (limited to 'noncore/apps/checkbook/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/mainwindow.cpp b/noncore/apps/checkbook/mainwindow.cpp
index ce15e3e..c7ffa7c 100644
--- a/noncore/apps/checkbook/mainwindow.cpp
+++ b/noncore/apps/checkbook/mainwindow.cpp
@@ -193,7 +193,8 @@ void MainWindow::addCheckbook( CBInfo *cb )
193 if ( _cfg.getShowBalances() ) 193 if ( _cfg.getShowBalances() )
194 { 194 {
195 QString balance; 195 QString balance;
196 balance.sprintf( "%s%.2f", _cfg.getCurrencySymbol().latin1(), cb->balance() ); 196 balance.sprintf( "%.2f", cb->balance() );
197 balance.prepend( _cfg.getCurrencySymbol() );
197 lvi->setText( posName + 1, balance ); 198 lvi->setText( posName + 1, balance );
198 } 199 }
199} 200}
@@ -304,7 +305,8 @@ void MainWindow::openBook(QListViewItem *curritem)
304 if ( _cfg.getShowBalances() && cb->balance() != currbalance ) 305 if ( _cfg.getShowBalances() && cb->balance() != currbalance )
305 { 306 {
306 QString tempstr; 307 QString tempstr;
307 tempstr.sprintf( "%s%.2f", _cfg.getCurrencySymbol().latin1(), cb->balance() ); 308 tempstr.sprintf( "%.2f", cb->balance() );
309 tempstr.prepend( _cfg.getCurrencySymbol() );
308 curritem->setText( posName + 1, tempstr ); 310 curritem->setText( posName + 1, tempstr );
309 } 311 }
310 312