Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/keditscheduledlg.cpp
Context not available. | |||||
494 | MyMoneyFile::instance()->addSchedule(schedule); | 494 | MyMoneyFile::instance()->addSchedule(schedule); | ||
---|---|---|---|---|---|
495 | ft.commit(); | 495 | ft.commit(); | ||
496 | 496 | | |||
497 | } catch (const MyMoneyException &e) { | 497 | } catch (const std::exception &e) { | ||
498 | KMessageBox::error(nullptr, i18n("Unable to add scheduled transaction: %1", e.what()), i18n("Add scheduled transaction")); | 498 | KMessageBox::error(nullptr, i18n("Unable to add scheduled transaction: %1", e.what()), i18n("Add scheduled transaction")); | ||
499 | } | 499 | } | ||
500 | } | 500 | } | ||
Context not available. | |||||
544 | // engine. Calling this twice in a row does not hurt. | 544 | // engine. Calling this twice in a row does not hurt. | ||
545 | delete transactionEditor; | 545 | delete transactionEditor; | ||
546 | ft.commit(); | 546 | ft.commit(); | ||
547 | } catch (const MyMoneyException &e) { | 547 | } catch (const std::exception &e) { | ||
548 | KMessageBox::detailedSorry(nullptr, i18n("Unable to modify scheduled transaction '%1'", inputSchedule.name()), e.what()); | 548 | KMessageBox::detailedSorry(nullptr, i18n("Unable to modify scheduled transaction '%1'", inputSchedule.name()), e.what()); | ||
549 | } | 549 | } | ||
550 | } | 550 | } | ||
Context not available. | |||||
562 | MyMoneyFile::instance()->modifySchedule(loan_wiz->schedule()); | 562 | MyMoneyFile::instance()->modifySchedule(loan_wiz->schedule()); | ||
563 | MyMoneyFile::instance()->modifyAccount(loan_wiz->account()); | 563 | MyMoneyFile::instance()->modifyAccount(loan_wiz->account()); | ||
564 | ft.commit(); | 564 | ft.commit(); | ||
565 | } catch (const MyMoneyException &e) { | 565 | } catch (const std::exception &e) { | ||
566 | KMessageBox::detailedSorry(nullptr, i18n("Unable to modify scheduled transaction '%1'", inputSchedule.name()), e.what()); | 566 | KMessageBox::detailedSorry(nullptr, i18n("Unable to modify scheduled transaction '%1'", inputSchedule.name()), e.what()); | ||
567 | } | 567 | } | ||
568 | } | 568 | } | ||
Context not available. | |||||
573 | break; | 573 | break; | ||
574 | } | 574 | } | ||
575 | 575 | | |||
576 | } catch (const MyMoneyException &e) { | 576 | } catch (const std::exception &e) { | ||
577 | KMessageBox::detailedSorry(nullptr, i18n("Unable to modify scheduled transaction '%1'", inputSchedule.name()), e.what()); | 577 | KMessageBox::detailedSorry(nullptr, i18n("Unable to modify scheduled transaction '%1'", inputSchedule.name()), e.what()); | ||
578 | } | 578 | } | ||
579 | } | 579 | } | ||
Context not available. |