Skip to content

Commit

Permalink
Delete whole transaction when transaction is deleted, not just the sp…
Browse files Browse the repository at this point in the history
…lit of the relevant account.

Update version code and changelog
  • Loading branch information
codinguser committed Jan 23, 2015
1 parent e4e1fb3 commit 8eeb0c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Version 1.5.2 *(2015-01-26)*
* Fixed: Full name not updated when account name is changed
* Fixed: Toggle button shown when double-entry is disabled
* Fixed: Amount input problems on some devices or keyboards
* Fixed: Crash when changing the parent of an account
* Fixed: Deleting a transaction only deletes some splits, not the whole.

Version 1.5.1 *(2014-10-08)*
----------------------------
Expand Down
2 changes: 1 addition & 1 deletion app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.gnucash.android"
android:versionCode="44"
android:versionCode="45"
android:versionName="@string/app_version_name" >

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
return true;

case R.id.context_menu_delete:
SplitsDbAdapter splitsDbAdapter = new SplitsDbAdapter(getActivity());
for (long id : getListView().getCheckedItemIds()) {
splitsDbAdapter.deleteSplitsForTransactionAndAccount(mTransactionsDbAdapter.getUID(id), mAccountUID);
mTransactionsDbAdapter.deleteRecord(id);
}
splitsDbAdapter.close();
refresh();
mode.finish();
WidgetConfigurationActivity.updateAllWidgets(getActivity());
Expand Down

0 comments on commit 8eeb0c8

Please sign in to comment.