Index: src/ch/CfgProperties.cpp =================================================================== diff -u -r4ec3aef62d14193e3021e6bc3f8bcdf11770c7d5 -r3ba4fcc537059e952471a77c3cc9893e779bce98 --- src/ch/CfgProperties.cpp (.../CfgProperties.cpp) (revision 4ec3aef62d14193e3021e6bc3f8bcdf11770c7d5) +++ src/ch/CfgProperties.cpp (.../CfgProperties.cpp) (revision 3ba4fcc537059e952471a77c3cc9893e779bce98) @@ -72,7 +72,6 @@ pManager->register_signed_num(_t("Copying/Default priority"), THREAD_PRIORITY_NORMAL, 0, 0xffffffff); pManager->register_bool(_t("Copying/Disable priority boost"), false); pManager->register_bool(_t("Copying/Delete files after finished"), true); - pManager->register_bool(_t("Copying/Create log file"), true); pManager->register_bool(_t("Shell/Show 'Copy' command"), true); pManager->register_bool(_t("Shell/Show 'Move' command"), true); Index: src/ch/CfgProperties.h =================================================================== diff -u -r4ec3aef62d14193e3021e6bc3f8bcdf11770c7d5 -r3ba4fcc537059e952471a77c3cc9893e779bce98 --- src/ch/CfgProperties.h (.../CfgProperties.h) (revision 4ec3aef62d14193e3021e6bc3f8bcdf11770c7d5) +++ src/ch/CfgProperties.h (.../CfgProperties.h) (revision 3ba4fcc537059e952471a77c3cc9893e779bce98) @@ -68,7 +68,6 @@ PP_CMDEFAULTPRIORITY, PP_CMDISABLEPRIORITYBOOST, PP_CMDELETEAFTERFINISHED, - PP_CMCREATELOG, PP_SHSHOWCOPY, PP_SHSHOWMOVE, Index: src/ch/OptionsDlg.cpp =================================================================== diff -u -r4ec3aef62d14193e3021e6bc3f8bcdf11770c7d5 -r3ba4fcc537059e952471a77c3cc9893e779bce98 --- src/ch/OptionsDlg.cpp (.../OptionsDlg.cpp) (revision 4ec3aef62d14193e3021e6bc3f8bcdf11770c7d5) +++ src/ch/OptionsDlg.cpp (.../OptionsDlg.cpp) (revision 3ba4fcc537059e952471a77c3cc9893e779bce98) @@ -307,7 +307,6 @@ PROP_COMBO(IDS_DEFAULTPRIORITY_STRING, MakeCompoundString(IDS_PRIORITY0_STRING, 7, _T("!")), PriorityToIndex(boost::numeric_cast(GetConfig().get_signed_num(PP_CMDEFAULTPRIORITY)))); PROP_BOOL(IDS_CFGDISABLEPRIORITYBOOST_STRING, GetConfig().get_bool(PP_CMDISABLEPRIORITYBOOST)); PROP_BOOL(IDS_DELETEAFTERFINISHED_STRING, GetConfig().get_bool(PP_CMDELETEAFTERFINISHED)); - PROP_BOOL(IDS_CREATELOGFILES_STRING, GetConfig().get_bool(PP_CMCREATELOG)); // Buffer PROP_SEPARATOR(IDS_OPTIONSBUFFER_STRING); @@ -419,7 +418,6 @@ rConfig.set_signed_num(PP_CMDEFAULTPRIORITY, IndexToPriority(GetIndexProp(iPosition++))); rConfig.set_bool(PP_CMDISABLEPRIORITYBOOST, GetBoolProp(iPosition++)); rConfig.set_bool(PP_CMDELETEAFTERFINISHED, GetBoolProp(iPosition++)); - rConfig.set_bool(PP_CMCREATELOG, GetBoolProp(iPosition++)); // Buffer SKIP_SEPARATOR(iPosition); Index: src/ch/StatusDlg.cpp =================================================================== diff -u -rbd08c279240bac9e7902f8da6a9251e0252ec324 -r3ba4fcc537059e952471a77c3cc9893e779bce98 --- src/ch/StatusDlg.cpp (.../StatusDlg.cpp) (revision bd08c279240bac9e7902f8da6a9251e0252ec324) +++ src/ch/StatusDlg.cpp (.../StatusDlg.cpp) (revision 3ba4fcc537059e952471a77c3cc9893e779bce98) @@ -404,13 +404,12 @@ { // remember ptr to CTask m_spSelectedItem=GetSelectedItemPointer(); - bool bShowLog=GetConfig().get_bool(PP_CMCREATELOG); // set status of buttons pause/resume/cancel if (m_spSelectedItem != NULL) { GetDlgItem(IDC_RESTART_BUTTON)->EnableWindow(true); - GetDlgItem(IDC_SHOW_LOG_BUTTON)->EnableWindow(bShowLog); + GetDlgItem(IDC_SHOW_LOG_BUTTON)->EnableWindow(true); GetDlgItem(IDC_DELETE_BUTTON)->EnableWindow(true); if (m_spSelectedItem->GetStatus(ST_STEP_MASK) == ST_FINISHED @@ -829,7 +828,7 @@ { // show log CTaskPtr spTask = GetSelectedItemPointer(); - if (!spTask || !GetConfig().get_bool(PP_CMCREATELOG)) + if (!spTask) return; unsigned long lResult = (unsigned long)(ShellExecute(this->m_hWnd, _T("open"), _T("notepad.exe"), Index: src/ch/task.cpp =================================================================== diff -u -r266560162ac9f14f94b48a7c84fee323aa259c0d -r3ba4fcc537059e952471a77c3cc9893e779bce98 --- src/ch/task.cpp (.../task.cpp) (revision 266560162ac9f14f94b48a7c84fee323aa259c0d) +++ src/ch/task.cpp (.../task.cpp) (revision 3ba4fcc537059e952471a77c3cc9893e779bce98) @@ -1823,26 +1823,17 @@ case CFeedbackHandler::eResult_Cancel: { // log - if(GetConfig().get_bool(PP_CMCREATELOG)) - { - fmt.SetFormat(_T("Cancel request while checking result of dialog before opening source file %path (CustomCopyFile)")); - fmt.SetParam(_t("%path"), pData->spSrcFile->GetFullFilePath()); - m_log.logi(fmt); - } + fmt.SetFormat(_T("Cancel request while checking result of dialog before opening source file %path (CustomCopyFile)")); + fmt.SetParam(_t("%path"), pData->spSrcFile->GetFullFilePath()); + m_log.logi(fmt); + throw new CProcessingException(E_CANCEL); - break; } case CFeedbackHandler::eResult_Pause: - { - throw new CProcessingException(E_PAUSE); - break; - } + throw new CProcessingException(E_PAUSE); default: - { - BOOST_ASSERT(FALSE); // unknown result - throw new CProcessingException(E_ERROR, 0, _t("Unknown feedback result type")); - break; - } + BOOST_ASSERT(FALSE); // unknown result + THROW(_T("Unhandled case"), 0, 0, 0); } }// bExist