Properly include the counter variable in the message when
authormha <mha@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 6 Aug 2009 09:36:02 +0000 (09:36 +0000)
committermha <mha@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 6 Aug 2009 09:36:02 +0000 (09:36 +0000)
deleting multiple rows, instead of getting a completely random
number (usually very large, from random memory location) in
the message.

git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@8006 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/frm/frmEditGrid.cpp

index f5cd71ec3a085e48b26e552ccbd880dc0d003502..ec003700ed9601999f8d6754a2c78ea23a916f4f 100644 (file)
@@ -1058,7 +1058,7 @@ void frmEditGrid::OnDelete(wxCommandEvent& event)
         return;
 
     wxString prompt;
-    prompt.Printf(wxPLURAL("Are you sure you wish to delete the selected row?", "Are you sure you wish to delete the %d selected rows?", i));
+    prompt.Printf(wxPLURAL("Are you sure you wish to delete the selected row?", "Are you sure you wish to delete the %d selected rows?", i), i);
 
     wxMessageDialog msg(this, prompt, _("Delete rows?"), wxYES_NO | wxICON_QUESTION);
     if (msg.ShowModal() != wxID_YES)