diff --git a/src/bin/ppp_up/ConnectionView.cpp b/src/bin/ppp_up/ConnectionView.cpp index 8e033141de..9226786760 100644 --- a/src/bin/ppp_up/ConnectionView.cpp +++ b/src/bin/ppp_up/ConnectionView.cpp @@ -108,7 +108,6 @@ ConnectionView::ConnectionView(BRect rect, const BString& interfaceName) rect.right = rect.left + kDefaultButtonWidth; fConnectButton = new BButton(rect, "ConnectButton", kLabelConnect, new BMessage(kMsgConnect)); - Window()->SetDefaultButton(fConnectButton); rect.left = rect.right + 10; rect.right = rect.left + kDefaultButtonWidth; @@ -127,6 +126,7 @@ ConnectionView::AttachedToWindow() fListener.WatchManager(); WatchInterface(fListener.Manager().InterfaceWithName(fInterfaceName.String())); + Window()->SetDefaultButton(fConnectButton); fConnectButton->SetTarget(this); fCancelButton->SetTarget(this); }