mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Check if user pressed cancel in password dialog
This commit is contained in:
@@ -453,9 +453,8 @@ tryagain:
|
||||
if (param_root) {
|
||||
char *line;
|
||||
|
||||
// TODO: fix password dialog so that Cancel can be detected
|
||||
// At the moment it's impossible to tell if the password is blank
|
||||
const char *pwd = password(_("This program requires administrator privileges.\nPlease enter your password below:"));
|
||||
if (pwd == 0) { fprintf(stderr,"Canceled\n"); exit(1); }
|
||||
|
||||
// Chat routine
|
||||
while (1) {
|
||||
|
Reference in New Issue
Block a user