Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54408 - in /trunk/sudo/src: Sudo.ycp dialogs.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Tue, 06 Jan 2009 16:49:53 -0000
  • Message-id: <E1LKF7p-0004eZ-GT@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Tue Jan 6 17:49:53 2009
New Revision: 54408

URL: http://svn.opensuse.org/viewcvs/yast?rev=54408&view=rev
Log:
Bother user with "Are you sure?" popup only when
there is something to do (#458328)

Modified:
trunk/sudo/src/Sudo.ycp
trunk/sudo/src/dialogs.ycp

Modified: trunk/sudo/src/Sudo.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/Sudo.ycp?rev=54408&r1=54407&r2=54408&view=diff
==============================================================================
--- trunk/sudo/src/Sudo.ycp (original)
+++ trunk/sudo/src/Sudo.ycp Tue Jan 6 17:49:53 2009
@@ -401,7 +401,12 @@
/*end Commands */

global boolean Abort() {
- return Popup::YesNo( _("All changes will be lost. Really quit sudo
configuration without saving ?"));
+ if (Sudo::GetModified())
+ {
+ return Popup::YesNo( _("All changes will be lost. Really quit sudo
configuration without saving ?"));
+ }
+ else
+ return true;
}

/**

Modified: trunk/sudo/src/dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialogs.ycp?rev=54408&r1=54407&r2=54408&view=diff
==============================================================================
--- trunk/sudo/src/dialogs.ycp (original)
+++ trunk/sudo/src/dialogs.ycp Tue Jan 6 17:49:53 2009
@@ -113,6 +113,7 @@
SwapItems( idx, idx - 1);
SwapUIItems( idx, idx - 1 );
UI::ChangeWidget(`id("table_user_spec"), `CurrentItem, idx-1);
+ Sudo::SetModified();
}
} else if ( ret == "down"){
integer idx = (integer) UI::QueryWidget(`id("table_user_spec"),
`CurrentItem);
@@ -120,6 +121,7 @@
SwapItems( idx, idx + 1 );
SwapUIItems( idx, idx + 1 );
UI::ChangeWidget(`id("table_user_spec"), `CurrentItem, idx+1);
+ Sudo::SetModified();
}
}
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages