| 86 | |
| 87 | |
| 88 | void JournallingObject::restoreState( const QDomElement & _this ) |
| 89 | { |
| 90 | SerializingObject::restoreState( _this ); |
| 91 | |
| 92 | saveJournallingState( false ); |
| 93 | |
| 94 | // search for journal-node |
| 95 | QDomNode node = _this.firstChild(); |
| 96 | while( !node.isNull() ) |
| 97 | { |
| 98 | if( node.isElement() && node.nodeName() == "journal" ) |
| 99 | { |
| 100 | const jo_id_t new_id = node.toElement().attribute( "id" ).toInt(); |
| 101 | if( new_id ) |
| 102 | { |
| 103 | changeID( new_id ); |
| 104 | } |
| 105 | } |
| 106 | node = node.nextSibling(); |
| 107 | } |
| 108 | |
| 109 | restoreJournallingState(); |
| 110 | } |
| 111 | |
| 112 | |
| 113 |
nothing calls this directly
no test coverage detected