Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/views/budget/kbudgetview.cpp
Context not available. | |||||
131 | MyMoneyFile::instance()->addBudget(budget); | 131 | MyMoneyFile::instance()->addBudget(budget); | ||
---|---|---|---|---|---|
132 | ft.commit(); | 132 | ft.commit(); | ||
133 | } catch (const MyMoneyException &e) { | 133 | } catch (const MyMoneyException &e) { | ||
134 | KMessageBox::detailedSorry(this, i18n("Error"), i18n("Unable to add budget: %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 134 | KMessageBox::detailedSorry(this, i18n("Unable to add budget"), e.what()); | ||
135 | } | 135 | } | ||
136 | } | 136 | } | ||
137 | 137 | | |||
Context not available. | |||||
160 | file->removeBudget(budget); | 160 | file->removeBudget(budget); | ||
161 | ft.commit(); | 161 | ft.commit(); | ||
162 | } catch (const MyMoneyException &e) { | 162 | } catch (const MyMoneyException &e) { | ||
163 | KMessageBox::detailedSorry(this, i18n("Error"), i18n("Unable to remove budget: %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 163 | KMessageBox::detailedSorry(this, i18n("Unable to remove budget."), e.what()); | ||
164 | } | 164 | } | ||
165 | } | 165 | } | ||
166 | 166 | | |||
Context not available. | |||||
177 | MyMoneyFile::instance()->addBudget(budget); | 177 | MyMoneyFile::instance()->addBudget(budget); | ||
178 | ft.commit(); | 178 | ft.commit(); | ||
179 | } catch (const MyMoneyException &e) { | 179 | } catch (const MyMoneyException &e) { | ||
180 | KMessageBox::detailedSorry(this, i18n("Error"), i18n("Unable to add budget: %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 180 | KMessageBox::detailedSorry(this, i18n("Unable to add budget"), e.what()); | ||
181 | } | 181 | } | ||
182 | } | 182 | } | ||
183 | } | 183 | } | ||
Context not available. | |||||
214 | MyMoneyFile::instance()->modifyBudget(budget); | 214 | MyMoneyFile::instance()->modifyBudget(budget); | ||
215 | ft.commit(); | 215 | ft.commit(); | ||
216 | } catch (const MyMoneyException &e) { | 216 | } catch (const MyMoneyException &e) { | ||
217 | KMessageBox::detailedSorry(this, i18n("Error"), i18n("Unable to modify budget: %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 217 | KMessageBox::detailedSorry(this, i18n("Unable to modify budget."), e.what()); | ||
218 | } | 218 | } | ||
219 | } | 219 | } | ||
220 | } | 220 | } | ||
Context not available. | |||||
252 | ft.commit(); | 252 | ft.commit(); | ||
253 | } | 253 | } | ||
254 | } catch (const MyMoneyException &e) { | 254 | } catch (const MyMoneyException &e) { | ||
255 | KMessageBox::detailedSorry(this, i18n("Error"), i18n("Unable to modify budget: %1, thrown in %2:%3", e.what(), e.file(), e.line())); | 255 | KMessageBox::detailedSorry(this, i18n("Unable to modify budget."), e.what()); | ||
256 | } | 256 | } | ||
257 | } | 257 | } | ||
258 | } | 258 | } | ||
Context not available. | |||||
272 | } | 272 | } | ||
273 | 273 | | |||
274 | } catch (const MyMoneyException &e) { | 274 | } catch (const MyMoneyException &e) { | ||
275 | KMessageBox::detailedSorry(this, i18n("Unable to reset budget"), | 275 | KMessageBox::detailedSorry(this, i18n("Unable to reset budget"), e.what()); | ||
276 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
277 | } | 276 | } | ||
278 | } | 277 | } | ||
279 | 278 | | |||
Context not available. | |||||
286 | ft.commit(); | 285 | ft.commit(); | ||
287 | d->refreshHideUnusedButton(); | 286 | d->refreshHideUnusedButton(); | ||
288 | } catch (const MyMoneyException &e) { | 287 | } catch (const MyMoneyException &e) { | ||
289 | KMessageBox::detailedSorry(this, i18n("Unable to modify budget"), | 288 | KMessageBox::detailedSorry(this, i18n("Unable to modify budget"), e.what()); | ||
290 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
291 | } | 289 | } | ||
292 | } | 290 | } | ||
293 | 291 | | |||
Context not available. | |||||
380 | ft.commit(); | 378 | ft.commit(); | ||
381 | 379 | | |||
382 | } catch (const MyMoneyException &e) { | 380 | } catch (const MyMoneyException &e) { | ||
383 | KMessageBox::detailedSorry(this, i18n("Unable to modify budget"), | 381 | KMessageBox::detailedSorry(this, i18n("Unable to modify budget"), e.what()); | ||
384 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
385 | } | 382 | } | ||
386 | } else { | 383 | } else { | ||
387 | pBudget->setText(0, new_name); | 384 | pBudget->setText(0, new_name); | ||
Context not available. |