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

g10/ChangeLog
g10/keyedit.c

index 326e9f2..9434509 100644 (file)
@@ -1,3 +1,9 @@
+2008-09-25  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-25  Werner Koch  <wk@g10code.com>
 
        * parse-packet.c (parse): Remove special treatment for compressed
index 03d8651..ee2088c 100644 (file)
@@ -2200,11 +2200,13 @@ keyedit_menu( const char *username, strlist_t 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: