| 958 | ///////////////////////////////////////////////////////////////////// |
| 959 | |
| 960 | void KDiff3App::slotFileSave() |
| 961 | { |
| 962 | if(m_bDefaultFilename) |
| 963 | { |
| 964 | slotFileSaveAs(); |
| 965 | } |
| 966 | else |
| 967 | { |
| 968 | slotStatusMsg(i18n("Saving file...")); |
| 969 | |
| 970 | bool bSuccess = m_pMergeResultWindow->saveDocument(m_outputFilename, m_pMergeResultWindowTitle->getEncoding(), m_pMergeResultWindowTitle->getLineEndStyle()); |
| 971 | if(bSuccess) |
| 972 | { |
| 973 | m_bFileSaved = true; |
| 974 | m_bOutputModified = false; |
| 975 | if(m_bDirCompare) |
| 976 | m_pDirectoryMergeWindow->mergeResultSaved(m_outputFilename); |
| 977 | } |
| 978 | |
| 979 | slotStatusMsg(i18n("Ready.")); |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | void KDiff3App::slotFileSaveAs() |
| 984 | { |
nothing calls this directly
no test coverage detected