From cad278205c4824ee561e72f36aa3c312244eb80d Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Thu, 19 Aug 2021 17:25:18 -0500 Subject: [PATCH] Fix contact-editing --- application/windows/RosterEditWindow.cpp | 1 - application/windows/TemplateWindow.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/application/windows/RosterEditWindow.cpp b/application/windows/RosterEditWindow.cpp index ede46e0..5143b17 100644 --- a/application/windows/RosterEditWindow.cpp +++ b/application/windows/RosterEditWindow.cpp @@ -130,7 +130,6 @@ RosterEditWindow::MessageReceived(BMessage* message) fEditingWindow->Quit(); fEditingUser.SetTo(""); } - int index = message->FindInt32("index"); RosterItem* ritem = fRosterView->ListView()->RosterItemAt(index); const char* search = fRosterView->SearchBox()->Text(); diff --git a/application/windows/TemplateWindow.cpp b/application/windows/TemplateWindow.cpp index 82e6428..71179c8 100644 --- a/application/windows/TemplateWindow.cpp +++ b/application/windows/TemplateWindow.cpp @@ -38,7 +38,7 @@ TemplateWindow::TemplateWindow(const char* title, const char* templateType, BWindow(BRect(0, 0, 400, 100), title, B_FLOATING_WINDOW, B_NOT_RESIZABLE | B_AUTO_UPDATE_SIZE_LIMITS | B_CLOSE_ON_ESCAPE), fServer(server), - fSelectedAcc(-1), + fSelectedAcc(instance), fTemplate(NULL), fTemplateType(templateType), fMessage(msg),