Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Ryakiotakis <kalast@gmail.com>2018-11-30 23:11:59 +0300
committerAntony Ryakiotakis <kalast@gmail.com>2018-11-30 23:11:59 +0300
commit60d6eb0b5d578eb02c5f1f31cb51a6cbeea6ee6f (patch)
treea2831247597e26e38e426734e2c679eaa226435d /intern/ghost
parent0b50ce1db4b19e63d108c503c8a66375c3f12f7b (diff)
Win32: Use the nicer looking blender-drawn confirmation message box when
quitting with unsaved changes, instead of an ugly messagebox
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp6
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.h5
2 files changed, 2 insertions, 9 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index bcf7d4e587a..ac58751c7d0 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1751,9 +1751,3 @@ 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);
-}
diff --git a/intern/ghost/intern/GHOST_SystemWin32.h b/intern/ghost/intern/GHOST_SystemWin32.h
index e1fd82ec239..a966dbc3990 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.h
+++ b/intern/ghost/intern/GHOST_SystemWin32.h
@@ -224,10 +224,9 @@ public:
static GHOST_TSuccess pushDragDropEvent(GHOST_TEventType eventType, GHOST_TDragnDropTypes draggedObjectType, GHOST_WindowWin32 *window, int mouseX, int mouseY, void *data);
/**
- * Confirms quitting he program when there is just one window left open
- * in the application
+ * Informs if the system provides native dialogs (eg. confirm quit)
*/
- int confirmQuit(GHOST_IWindow *window) const;
+ virtual bool supportsNativeDialogs(void) { return false; }
protected:
/**