From 8d2601c11b2954cac419115f2053c95da29ddefd Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 28 May 2003 16:20:37 +0000 Subject: modify un-meaninful "save&quit"/"Quit" to a simple "Ok" --- edit-urpm-sources.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'edit-urpm-sources.pl') diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index 406e2bb0..c180010c 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -302,8 +302,7 @@ sub mainwindow { gtksignal_connect(Gtk2::Button->new(but(N("Proxy..."))), clicked => \&proxy_callback))), 0, Gtk2::HSeparator->new, 0, gtkpack(create_hbox(), - gtksignal_connect(Gtk2::Button->new(N("Save and quit")), clicked => sub { $mainw->{retval} = 1; Gtk2->main_quit }), - gtksignal_connect(Gtk2::Button->new(N("Quit")), clicked => sub { $mainw->{retval} = 0; Gtk2->main_quit })))); + gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { Gtk2->main_quit })))); $mainw->main; } @@ -323,9 +322,8 @@ or to perform updates.")), yesno => 1) or myexit -1; push @$already_splashed, basename($0); } -if (mainwindow()) { - $urpm->write_config; -} +mainwindow(); +$urpm->write_config; writeconf(); -- cgit v1.2.1