Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kpayeesview.cpp
Context not available. | |||||
208 | ft.commit(); | 208 | ft.commit(); | ||
---|---|---|---|---|---|
209 | 209 | | |||
210 | } catch (const MyMoneyException &e) { | 210 | } catch (const MyMoneyException &e) { | ||
211 | KMessageBox::detailedSorry(this, i18n("Unable to modify payee"), | 211 | KMessageBox::detailedSorry(this, i18n("Unable to modify payee"), e.what()); | ||
212 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
213 | } | 212 | } | ||
214 | } else { | 213 | } else { | ||
215 | p->setText(new_name); | 214 | p->setText(new_name); | ||
Context not available. | |||||
319 | d->showTransactions(); | 318 | d->showTransactions(); | ||
320 | 319 | | |||
321 | } catch (const MyMoneyException &e) { | 320 | } catch (const MyMoneyException &e) { | ||
322 | qDebug("exception during display of payee: %s at %s:%ld", qPrintable(e.what()), qPrintable(e.file()), e.line()); | 321 | qDebug("exception during display of payee: %s", qPrintable(e.what())); | ||
323 | d->ui->m_register->clear(); | 322 | d->ui->m_register->clear(); | ||
324 | d->m_selectedPayeesList.clear(); | 323 | d->m_selectedPayeesList.clear(); | ||
325 | d->m_payee = MyMoneyPayee(); | 324 | d->m_payee = MyMoneyPayee(); | ||
Context not available. | |||||
433 | ft.commit(); | 432 | ft.commit(); | ||
434 | 433 | | |||
435 | } catch (const MyMoneyException &e) { | 434 | } catch (const MyMoneyException &e) { | ||
436 | KMessageBox::detailedSorry(0, i18n("Unable to modify payee"), | 435 | KMessageBox::detailedSorry(this, i18n("Unable to modify payee"), e.what()); | ||
437 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
438 | } | 436 | } | ||
439 | } | 437 | } | ||
440 | } | 438 | } | ||
Context not available. | |||||
500 | MyMoneyFile::instance()->modifyPayee(d->m_payee); | 498 | MyMoneyFile::instance()->modifyPayee(d->m_payee); | ||
501 | ft.commit(); | 499 | ft.commit(); | ||
502 | } catch (const MyMoneyException &e) { | 500 | } catch (const MyMoneyException &e) { | ||
503 | KMessageBox::detailedSorry(0, i18n("Unable to modify payee"), | 501 | KMessageBox::detailedSorry(this, i18n("Unable to modify payee"), e.what()); | ||
504 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
505 | } | 502 | } | ||
506 | } | 503 | } | ||
507 | 504 | | |||
Context not available. |