diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2025-12-27 16:01:51 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2025-12-27 16:01:51 +0100 |
| commit | 28c730a2e35ce81634dd4d47bf8e92e4552ec17c (patch) | |
| tree | c1aa994a9c241972f81e1ab8403a6b1dc37f14da /src/ui/ui_contacts.cpp | |
| parent | 178e8c135a60e9f206dcfbad8bab7bb868e6a294 (diff) | |
fix warnings
Diffstat (limited to 'src/ui/ui_contacts.cpp')
| -rw-r--r-- | src/ui/ui_contacts.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp index 5d92f8a..a9559c5 100644 --- a/src/ui/ui_contacts.cpp +++ b/src/ui/ui_contacts.cpp @@ -31,7 +31,7 @@ static contact active_contact; void ui::setup_contacts() { current_view_state = ui::view_state::LIST_ALL; - active_contact = active_contact = administration::contact_create_empty(); + active_contact = administration::contact_create_empty(); memops::zero(&selected_for_removal, sizeof(contact)); } @@ -87,7 +87,7 @@ static void draw_contact_list() ImGui::TableSetupColumn(locale::get("contact.table.identifier"), ImGuiTableColumnFlags_WidthFixed, 80); ImGui::TableSetupColumn(locale::get("contact.table.name"), ImGuiTableColumnFlags_WidthStretch); ImGui::TableSetupColumn(locale::get("contact.table.address"), ImGuiTableColumnFlags_WidthStretch); - ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, 160); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, 170); ImGui::TableHeadersRow(); contact contact_list[items_per_page]; @@ -214,5 +214,7 @@ void ui::draw_contacts() ImGui::ContactForm(&active_contact, true, false); break; + + default: break; } }
\ No newline at end of file |
