From 6c3e4f860a24a695a00f37a7260ba99189290a6a Mon Sep 17 00:00:00 2001 From: mchinen Date: Mon, 4 Apr 2011 19:33:19 +0000 Subject: [PATCH] Bug 324 (P2) followup - Add a border around the buttons in the warning dialog. Also center the dialog on the window. --- src/import/ImportPCM.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/import/ImportPCM.cpp b/src/import/ImportPCM.cpp index 498b5ab28..9c4816184 100644 --- a/src/import/ImportPCM.cpp +++ b/src/import/ImportPCM.cpp @@ -241,9 +241,11 @@ How do you want to import the current file(s)?"), oldCopyPref == wxT("copy") ? _ prefsRadio->SetValue(true); wxSizer *buttonSizer = dialog.CreateButtonSizer(wxOK | wxCANCEL); - vbox->Add(buttonSizer, 0, wxALL | wxEXPAND); + vbox->Add(buttonSizer, 0, wxALL | wxEXPAND, 10); + dialog.SetSize(dialog.GetBestSize()); dialog.Layout(); + dialog.Center(); if (dialog.ShowModal() == wxID_OK) { if (aliasRadio->GetValue()) {