| 1475 | } |
| 1476 | |
| 1477 | bool CMergeApp::SaveProjectFile(const String& sProject, const ProjectFile &project) |
| 1478 | { |
| 1479 | try |
| 1480 | { |
| 1481 | project.Save(sProject); |
| 1482 | } |
| 1483 | catch (Poco::Exception& e) |
| 1484 | { |
| 1485 | String sErr = _("Unknown error saving project file."); |
| 1486 | sErr += ucr::toTString(e.displayText()); |
| 1487 | String msg = strutils::format_string2(_("Cannot open file\n%1\n\n%2"), sProject, sErr); |
| 1488 | AfxMessageBox(msg.c_str(), MB_ICONSTOP); |
| 1489 | return false; |
| 1490 | } |
| 1491 | |
| 1492 | return true; |
| 1493 | } |
| 1494 | |
| 1495 | /** |
| 1496 | * @brief Read project and perform comparison specified |
nothing calls this directly
no test coverage detected