Merge branch 'master' into blender2.8
[blender.git] / intern / ghost / intern / GHOST_SystemWin32.cpp
index ac58751c7d02bdc8ecccf5e68e58b698a91f1841..bcf7d4e587a5ecce2263de3c2a21d48c19789ab5 100644 (file)
@@ -1751,3 +1751,9 @@ int GHOST_SystemWin32::toggleConsole(int action)
 
        return m_consoleStatus;
 }
+
+int GHOST_SystemWin32::confirmQuit(GHOST_IWindow *window) const
+{
+       return (MessageBox(window ? ((GHOST_WindowWin32 *)window)->getHWND() : 0, "Some changes have not been saved.\nDo you really want to quit?",
+                          "Exit Blender", MB_OKCANCEL | MB_ICONWARNING | MB_TOPMOST) == IDOK);
+}