diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -280,9 +280,9 @@ int main(int argc, char *argv[]) | |||
| 280 | #if USE_SSL | 280 | #if USE_SSL |
| 281 | if (prefs_common.use_master_password) { | 281 | if (prefs_common.use_master_password) { |
| 282 | if (prefs_common.master_password_hash != NULL) { | 282 | if (prefs_common.master_password_hash != NULL) { |
| 283 | if (check_master_password_interactively(3)) { | 283 | if (check_master_password_interactively(3) != RC_OK) { |
| 284 | if (alertpanel(_("Master password"), | 284 | if (alertpanel(_("Master password"), |
| 285 | _("Unable to set master password"), | 285 | _("Invalid master password"), |
| 286 | GTK_STOCK_DISCARD, | 286 | GTK_STOCK_DISCARD, |
| 287 | GTK_STOCK_QUIT, | 287 | GTK_STOCK_QUIT, |
| 288 | NULL) != G_ALERTDEFAULT) { | 288 | NULL) != G_ALERTDEFAULT) { |
| @@ -290,7 +290,9 @@ int main(int argc, char *argv[]) | |||
| 290 | } | 290 | } |
| 291 | } | 291 | } |
| 292 | } else { | 292 | } else { |
| 293 | if (set_master_password_interactively(3) != 0) { | 293 | alertpanel_notice( |
| 294 | _("Master password enabled but not set. Setting one now")); | ||
| 295 | if (set_master_password_interactively(3) != RC_OK) { | ||
| 294 | if (alertpanel(_("Master password"), | 296 | if (alertpanel(_("Master password"), |
| 295 | _("Unable to set master password"), | 297 | _("Unable to set master password"), |
| 296 | GTK_STOCK_DISCARD, | 298 | GTK_STOCK_DISCARD, |
