Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Commit

Permalink
feat(Settings): handle uncategorized sidebar selected item
Browse files Browse the repository at this point in the history
  • Loading branch information
nlaplante committed Feb 7, 2015
1 parent dbcc71a commit 641b71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/window/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ namespace Envelope.Window {
set_content_view (transaction_view);
}

header_bar.title = category.name;
header_bar.title = category != null ? category.name : _("Uncategorized");
header_bar.subtitle = new DateTime.now_local ().format ("%B %Y");
header_bar.has_subtitle = true;

var saved_state = SavedState.get_default ();
saved_state.selected_category_id = category.@id;
saved_state.selected_category_id = category != null ? category.@id : -1;
saved_state.selected_account_id = -1;
}
catch (ServiceError err) {
Expand Down

0 comments on commit 641b71e

Please sign in to comment.