OSDN Git Service

MergeDoc.cpp: Add "Don't ask this question again" checkbox to the messagebox "Another...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 12 Dec 2018 23:01:58 +0000 (08:01 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 12 Dec 2018 23:01:58 +0000 (08:01 +0900)
--HG--
branch : stable

Src/MergeDoc.cpp

index 2d8f441..ef4016e 100644 (file)
@@ -575,7 +575,7 @@ void CMergeDoc::CheckFileChanged(void)
                if (FileChange[nBuffer] == FileChanged)
                {
                        String msg = strutils::format_string1(_("Another application has updated file\n%1\nsince WinMerge scanned it last time.\n\nDo you want to reload the file?"), m_filePaths[nBuffer]);
-                       if (AfxMessageBox(msg.c_str(), MB_YESNO | MB_ICONWARNING) == IDYES)
+                       if (AfxMessageBox(msg.c_str(), MB_YESNO | MB_ICONWARNING | MB_DONT_ASK_AGAIN) == IDYES)
                        {
                                OnFileReload();
                        }