/* EntryPanel::setModified * Sets the modified flag. If the entry is locked modified will * always be false *******************************************************************/ void EntryPanel::setModified(bool c) { if (!entry) { modified = c; return; } else { if (entry->isLocked()) modified = false; else modified = c; } if (modified) callRefresh(); }
/* EntryPanel::setModified * Sets the modified flag. If the entry is locked modified will * always be false *******************************************************************/ void EntryPanel::setModified(bool c) { bool mod = modified; if (!entry) { modified = c; return; } else { if (entry->isLocked()) modified = false; else modified = c; } if (mod != modified) { toolbar->enableGroup("Entry", modified); callRefresh(); } }