From: sdottaka Date: Tue, 2 Sep 2014 09:45:21 +0000 (+0900) Subject: Merge with stable X-Git-Tag: 2.16.4+-jp-10~957 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=88c706d3d68d14832970a5061fb3a17c4721138e;p=winmerge-jp%2Fwinmerge-jp.git Merge with stable --- 88c706d3d68d14832970a5061fb3a17c4721138e diff --cc Src/FilepathEdit.cpp index 3fc92abff,84ca70b2f..2e862c524 --- a/Src/FilepathEdit.cpp +++ b/Src/FilepathEdit.cpp @@@ -255,7 -252,10 +255,10 @@@ void CFilepathEdit::OnContextMenu(CWnd* BCMenu* pPopup = static_cast(menu.GetSubMenu(0)); ASSERT(pPopup != NULL); + DWORD sel = GetSel(); + if (HIWORD(sel) == LOWORD(sel)) + pPopup->EnableMenuItem(ID_EDITOR_COPY, MF_GRAYED); - if (m_sOriginalText.Right(1) == '\\') + if (paths_EndsWithSlash(m_sOriginalText)) // no filename, we have to disable the unwanted menu entry pPopup->EnableMenuItem(ID_EDITOR_COPY_FILENAME, MF_GRAYED); @@@ -272,12 -270,15 +273,15 @@@ int iBegin = 0; switch (command) { + case ID_EDITOR_COPY: + Copy(); + return; case ID_EDITOR_COPY_FILENAME: { - int lastSlash = m_sOriginalText.ReverseFind('\\'); - if (lastSlash == -1) - lastSlash = m_sOriginalText.ReverseFind('/'); - if (lastSlash != -1) + size_t lastSlash = m_sOriginalText.rfind('\\'); + if (lastSlash == String::npos) + lastSlash = m_sOriginalText.rfind('/'); + if (lastSlash != String::npos) iBegin = lastSlash+1; else iBegin = 0; diff --cc Translations/WinMerge/English.pot index 8fb62741f,8ecb36c93..cceaa18a5 --- a/Translations/WinMerge/English.pot +++ b/Translations/WinMerge/English.pot @@@ -8,7 -8,7 +8,7 @@@ msgid " msgstr "" "Project-Id-Version: WinMerge\n" "Report-Msgid-Bugs-To: http://bugs.winmerge.org/\n" - "POT-Creation-Date: 2014-07-29 23:18+0000\n" -"POT-Creation-Date: 2014-08-15 00:06+0000\n" ++"POT-Creation-Date: 2014-09-02 18:43+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: English \n"