Exemplo n.º 1
0
void ProjectController::save()
{
    if (!m_project->hasFileName())
        throw NoFileNameException();
    ProjectSerializer serializer;
    serializer.save(m_project->fileName(), m_project.data());
    m_isModified = false;
    emit changed();
}
Exemplo n.º 2
0
void ProjectController::save()
{
    if (!_project->hasFileName()) {
        throw NoFileNameException();
    }
    ProjectSerializer serializer;
    serializer.save(_project->getFileName(), _project.data());
    _is_modified = false;
    emit changed();
}