| 155 | } |
| 156 | |
| 157 | void RamWatchWindow::slotLoad() |
| 158 | { |
| 159 | if (defaultPath.isEmpty()) { |
| 160 | defaultPath = context->gamepath.c_str(); |
| 161 | defaultPath.append(".wch"); |
| 162 | } |
| 163 | |
| 164 | QString filename = QFileDialog::getOpenFileName(this, tr("Choose a watch file"), defaultPath, tr("watch files (*.wch)")); |
| 165 | if (filename.isNull()) { |
| 166 | return; |
| 167 | } |
| 168 | |
| 169 | defaultPath = filename; |
| 170 | QSettings watchSettings(filename, QSettings::IniFormat); |
| 171 | watchSettings.setFallbacksEnabled(false); |
| 172 | |
| 173 | ramWatchView->ramWatchModel->loadSettings(watchSettings); |
| 174 | } |
nothing calls this directly
no test coverage detected