SVN commit 1236139 by tbaumgart: Improved wording when transaction editing is cancelled by selecting another transaction in the ledger. GUI: CCMAIL: lu.dolezal@gmail.com M +7 -4 kmymoney.cpp --- trunk/extragear/office/kmymoney/kmymoney/kmymoney.cpp #1236138:1236139 @@ -5211,17 +5211,20 @@ } else { // okToSelect is preset to true if a cancel of the dialog is useful and false if it is not int rc; - KGuiItem noGuiItem = KStandardGuiItem::no(); + KGuiItem noGuiItem = KStandardGuiItem::save(); + KGuiItem yesGuiItem = KStandardGuiItem::discard(); + KGuiItem cancelGuiItem = KStandardGuiItem::cont(); + // if the transaction can't be entered make sure that it can't be entered by pressing no either if (!kmymoney->action("transaction_enter")->isEnabled()) { noGuiItem.setEnabled(false); noGuiItem.setToolTip(kmymoney->action("transaction_enter")->toolTip()); } if (okToSelect == true) { - rc = KMessageBox::warningYesNoCancel(0, i18n("

Do you really want to cancel editing this transaction without saving it?

- Yes cancels editing the transaction
- No saves the transaction prior to canceling and

- Cancel returns to the transaction editor.

You can also select an option to save the transaction automatically when e.g. selecting another transaction.

"), i18n("Cancel transaction edit"), KStandardGuiItem::yes(), noGuiItem, KStandardGuiItem::cancel(), dontShowAgain); + rc = KMessageBox::warningYesNoCancel(0, i18n("

Please select what you want to do: discard the changes, save the changes or continue to edit the transaction.

You can also set an option to save the transaction automatically when e.g. selecting another transaction.

"), i18n("End transaction edit"), yesGuiItem, noGuiItem, cancelGuiItem, dontShowAgain); } else { - rc = KMessageBox::warningYesNo(0, i18n("

Do you really want to cancel editing this transaction without saving it?

- Yes cancels editing the transaction

- No saves the transaction prior to canceling.

You can also select an option to save the transaction automatically when e.g. selecting another transaction.

"), i18n("Cancel transaction edit"), KStandardGuiItem::yes(), noGuiItem, dontShowAgain); + rc = KMessageBox::warningYesNo(0, i18n("

Please select what you want to do: discard the changes, save the changes or continue to edit the transaction.

You can also set an option to save the transaction automatically when e.g. selecting another transaction.

"), i18n("End transaction edit"), yesGuiItem, noGuiItem, dontShowAgain); } switch (rc) { @@ -6846,7 +6849,7 @@ if ((*it_p)->mapAccount(d->m_selectedAccount, settings)) { settings["provider"] = provider; MyMoneyAccount acc(d->m_selectedAccount); - acc.setOnlineBankingSettings(settings); + acc.setOnlineBankingSettings(settings); MyMoneyFileTransaction ft; try { MyMoneyFile::instance()->modifyAccount(acc); _______________________________________________ kde-doc-english mailing list kde-doc-english@kde.org https://mail.kde.org/mailman/listinfo/kde-doc-english