| 206 | } |
| 207 | |
| 208 | void FileBar::on_actionStore_triggered() |
| 209 | { |
| 210 | //store session file |
| 211 | |
| 212 | AppConfig &app = AppConfig::Instance(); |
| 213 | |
| 214 | QString file_name = QFileDialog::getSaveFileName( |
| 215 | this, |
| 216 | L_S(STR_PAGE_DLG, S_ID(IDS_DLG_SAVE_SEESION), "Save Session"), |
| 217 | app.userHistory.sessionDir, |
| 218 | "DSView Session (*.dsc)"); |
| 219 | |
| 220 | if (!file_name.isEmpty()) { |
| 221 | QFileInfo f(file_name); |
| 222 | if(f.suffix().compare("dsc")) |
| 223 | file_name.append(".dsc"); |
| 224 | |
| 225 | QString fname = path::GetDirectoryName(file_name); |
| 226 | if (fname != app.userHistory.sessionDir){ |
| 227 | app.userHistory.sessionDir = fname; |
| 228 | app.SaveHistory(); |
| 229 | } |
| 230 | |
| 231 | _session->broadcast_msg(DSV_MSG_STORE_CONF_PREV); |
| 232 | |
| 233 | sig_store_session(file_name); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | void FileBar::on_actionCapture_triggered() |
| 238 | { |
nothing calls this directly
no test coverage detected