* keyedit.c (keyedit_menu): Fix bug where a modified keyring loses its
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 25 Sep 2008 04:00:36 +0000 (04:00 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Thu, 25 Sep 2008 04:00:36 +0000 (04:00 +0000)
modified status after a "clean" or "minimize" that doesn't need to do
anything.

g10/ChangeLog
g10/keyedit.c

index 7f2a3a7..c177c17 100644 (file)
@@ -1,3 +1,9 @@
+2008-09-24  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyedit.c (keyedit_menu): Fix bug where a modified keyring loses
+       its modified status after a "clean" or "minimize" that doesn't
+       need to do anything.
+
 2008-09-23  David Shaw  <dshaw@jabberwocky.com>
 
        * pkclist.c (select_algo_from_prefs): Redo function to rank prefs
index 165d130..4155b07 100644 (file)
@@ -2185,11 +2185,13 @@ keyedit_menu( const char *username, STRLIST locusr,
            break;
 
          case cmdCLEAN:
-           redisplay=modified=menu_clean(keyblock,0);
+           if(menu_clean(keyblock,0))
+             redisplay=modified=1;
            break;
 
          case cmdMINIMIZE:
-           redisplay=modified=menu_clean(keyblock,1);
+           if(menu_clean(keyblock,1))
+             redisplay=modified=1;
            break;
 
          case cmdQUIT: