Added code for restoring listview lines.