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) (side-by-side diff)
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
@@ -190,13 +190,14 @@ void MainWindow::addCheckbook( CBInfo *cb )
lvi->setPixmap( 0, lockIcon );
}
lvi->setText( posName, cb->name() );
if ( _cfg.getShowBalances() )
{
QString balance;
- balance.sprintf( "%s%.2f", _cfg.getCurrencySymbol().latin1(), cb->balance() );
+ balance.sprintf( "%.2f", cb->balance() );
+ balance.prepend( _cfg.getCurrencySymbol() );
lvi->setText( posName + 1, balance );
}
}
void MainWindow::buildFilename( const QString &name )
{
@@ -301,13 +302,14 @@ void MainWindow::openBook(QListViewItem *curritem)
}
// Update balance if changed
if ( _cfg.getShowBalances() && cb->balance() != currbalance )
{
QString tempstr;
- tempstr.sprintf( "%s%.2f", _cfg.getCurrencySymbol().latin1(), cb->balance() );
+ tempstr.sprintf( "%.2f", cb->balance() );
+ tempstr.prepend( _cfg.getCurrencySymbol() );
curritem->setText( posName + 1, tempstr );
}
// write config, if needed
if( _cfg.isDirty() ) {
Config config("checkbook");