| 68 | } |
| 69 | |
| 70 | void JsonEditor::next() { |
| 71 | if (!m_valueEditor->isEnabled() || saveChanges()) { |
| 72 | ++m_fileIndex; |
| 73 | if (m_fileIndex >= m_files.size()) { |
| 74 | close(); |
| 75 | return; |
| 76 | } |
| 77 | |
| 78 | displayCurrentFile(); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | void JsonEditor::back() { |
| 83 | if (m_fileIndex == 0) |