fix the fix: use the correct payment name in transaction
authorKonrad Rosenbaum <konrad@silmor.de>
Fri, 22 Nov 2013 17:53:36 +0000 (18:53 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Fri, 22 Nov 2013 17:53:36 +0000 (18:53 +0100)
src/dialogs/payedit.cpp

index 57ff39b..f819717 100644 (file)
@@ -365,7 +365,7 @@ qint64 MPaymentDialog::value() const
 
 QString MPaymentDialog::paytype() const
 {
-       return m_ptype->currentText();
+       return m_ptype->itemData(m_ptype->currentIndex()).value<MOPaymentType>().name();
 }
 
 QString MPaymentDialog::paydata() const