Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kgloballedgerview_p.h
Context not available. | |||||
1215 | } | 1215 | } | ||
---|---|---|---|---|---|
1216 | ft.commit(); | 1216 | ft.commit(); | ||
1217 | } catch (const MyMoneyException &e) { | 1217 | } catch (const MyMoneyException &e) { | ||
1218 | KMessageBox::detailedSorry(q, i18n("Error"), i18n("Unable to delete transaction(s): %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 1218 | KMessageBox::detailedSorry(q, i18n("Unable to delete transaction(s)"), e.what()); | ||
1219 | } | 1219 | } | ||
1220 | emit q->slotStatusProgress(-1, -1); | 1220 | emit q->slotStatusProgress(-1, -1); | ||
1221 | } | 1221 | } | ||
Context not available. | |||||
1294 | MyMoneyFileTransaction ft; | 1294 | MyMoneyFileTransaction ft; | ||
1295 | try { | 1295 | try { | ||
1296 | if (startMatchTransaction.id().isEmpty()) | 1296 | if (startMatchTransaction.id().isEmpty()) | ||
1297 | throw MYMONEYEXCEPTION(i18n("No manually entered transaction selected for matching")); | 1297 | throw MYMONEYEXCEPTION(QString::fromLatin1("No manually entered transaction selected for matching")); | ||
1298 | if (endMatchTransaction.id().isEmpty()) | 1298 | if (endMatchTransaction.id().isEmpty()) | ||
1299 | throw MYMONEYEXCEPTION(i18n("No imported transaction selected for matching")); | 1299 | throw MYMONEYEXCEPTION(QString::fromLatin1("No imported transaction selected for matching")); | ||
1300 | 1300 | | |||
1301 | TransactionMatcher matcher(m_currentAccount); | 1301 | TransactionMatcher matcher(m_currentAccount); | ||
1302 | matcher.match(startMatchTransaction, startSplit, endMatchTransaction, endSplit, true); | 1302 | matcher.match(startMatchTransaction, startSplit, endMatchTransaction, endSplit, true); | ||
Context not available. | |||||
1377 | emit q->slotStatusProgress(-1, -1); | 1377 | emit q->slotStatusProgress(-1, -1); | ||
1378 | ft.commit(); | 1378 | ft.commit(); | ||
1379 | } catch (const MyMoneyException &e) { | 1379 | } catch (const MyMoneyException &e) { | ||
1380 | KMessageBox::detailedSorry(q, i18n("Error"), i18n("Unable to modify transaction: %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 1380 | KMessageBox::detailedSorry(q, i18n("Unable to modify transaction"), e.what()); | ||
1381 | } | 1381 | } | ||
1382 | } | 1382 | } | ||
1383 | 1383 | | |||
Context not available. |