[Phoneorder-commits] SF.net SVN: phoneorder: [49] trunk/src/orderwidget.ui.h
Status: Alpha
Brought to you by:
hurikhan
|
From: <hur...@us...> - 2007-08-04 21:40:52
|
Revision: 49
http://phoneorder.svn.sourceforge.net/phoneorder/?rev=49&view=rev
Author: hurikhan
Date: 2007-08-04 14:21:54 -0700 (Sat, 04 Aug 2007)
Log Message:
-----------
* Fixes FS#52: price miscalculation
* Improves item selection
Modified Paths:
--------------
trunk/src/orderwidget.ui.h
Modified: trunk/src/orderwidget.ui.h
===================================================================
--- trunk/src/orderwidget.ui.h 2007-08-04 17:50:07 UTC (rev 48)
+++ trunk/src/orderwidget.ui.h 2007-08-04 21:21:54 UTC (rev 49)
@@ -412,11 +412,11 @@
i = new QListViewItem (orderList, j, QString::null, line.left (1), query.value (1).toString (),
QString ("%L1") .arg (sign * currentCount * query.value (2).toDouble (), 0, 'f', 2),
QString::null, QString ("%1") .arg (priceId));
+ orderList->setSelected (i, true);
orderList_currentChanged (orderList);
itemGroup->clear ();
itemName->clear ();
lookupView->clear ();
- orderList->setSelected (i, true);
}
}
else
@@ -579,6 +579,10 @@
{
if (lv->childCount () > 1)
{
+ QListViewItem *n = i->itemAbove ();
+ if (!n) n = i->itemBelow ();
+ if (n) lv->setSelected (n, true);
+ it++; // FS#52: Fixes possible crash and calc failures
delete i;
continue;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|