MCPcopy Create free account
hub / github.com/KDE/kdiff3 / slotFileSave

Method slotFileSave

src/kdiff3.cpp:960–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958/////////////////////////////////////////////////////////////////////
959
960void 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
983void KDiff3App::slotFileSaveAs()
984{

Callers

nothing calls this directly

Calls 4

saveDocumentMethod · 0.80
mergeResultSavedMethod · 0.80
getEncodingMethod · 0.45
getLineEndStyleMethod · 0.45

Tested by

no test coverage detected