"Bo Peng" <[EMAIL PROTECTED]> writes: | > I do not like where it is placed, but I have no better alternatives. | | ?? | | > | + case LFUN_COMPRESSION_STATUS: | > | + // turn compression on/off | > | + BOOST_ASSERT(owner->buffer()->params().compressed == flag.onoff(true)); | > | + if (flag.onoff(true)) | > | + owner->buffer()->params().compressed = false; | > | + else | > | + owner->buffer()->params().compressed = true; | > | + owner->buffer()->markDirty(); | > | + break; | | > Should only markDirty if compressed actually changes state. | | When the menu item is selected, the status *is* changed and File->Save | should be enabled.
It is not just an menu thing it is an LFUN and thus reachable from the cli. (Or should be...) But you have a point... -- Lgb