[BEHAVIOUR_CHANGE] Remove the "move to Recycle bin" confirmation dialog for windows 7/Vista/XP.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1000 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
ba935673e5
commit
7516aa5437
@ -909,7 +909,15 @@ bool Notepad_plus::fileDelete(BufferID id)
|
||||
Buffer * buf = MainFileManager->getBufferByID(bufferID);
|
||||
const TCHAR *fileNamePath = buf->getFullPathName();
|
||||
|
||||
if (doDeleteOrNot(fileNamePath) == IDYES)
|
||||
winVer winVersion = (NppParameters::getInstance())->getWinVersion();
|
||||
bool goAhead = true;
|
||||
if (winVersion >= WV_WIN8)
|
||||
{
|
||||
// Windows 8 (and version afer?) has no system alert, so we ask user's confirmation
|
||||
goAhead = (doDeleteOrNot(fileNamePath) == IDYES);
|
||||
}
|
||||
|
||||
if (goAhead)
|
||||
{
|
||||
if (!MainFileManager->deleteFile(bufferID))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user