5
5
#include " ResourceIds.hpp"
6
6
#include " CommandIds.hpp"
7
7
8
- static bool UnsavedChangesContinue (HWND hwnd, LPCWSTR caption)
8
+ static bool ContinueWithNoSave (HWND hwnd, LPCWSTR caption)
9
9
{
10
10
std::wstring text = L" You have made some changes that are not saved.\n Would you like to continue?" ;
11
11
int result = MessageBox (hwnd, text.c_str (), caption, MB_ICONWARNING | MB_YESNO);
@@ -31,7 +31,7 @@ void Application::Init (HWND hwnd)
31
31
void Application::New (HWND hwnd)
32
32
{
33
33
if (nodeEditor.NeedToSave ()) {
34
- bool result = UnsavedChangesContinue (hwnd, L" New File" );
34
+ bool result = ContinueWithNoSave (hwnd, L" New File" );
35
35
if (!result) {
36
36
return ;
37
37
}
@@ -42,7 +42,7 @@ void Application::New (HWND hwnd)
42
42
void Application::Open (HWND hwnd)
43
43
{
44
44
if (nodeEditor.NeedToSave ()) {
45
- bool result = UnsavedChangesContinue (hwnd, L" Open File" );
45
+ bool result = ContinueWithNoSave (hwnd, L" Open File" );
46
46
if (!result) {
47
47
return ;
48
48
}
@@ -67,7 +67,7 @@ void Application::Save (HWND hwnd)
67
67
bool Application::Close (HWND hwnd)
68
68
{
69
69
if (nodeEditor.NeedToSave ()) {
70
- return UnsavedChangesContinue (hwnd, L" Quit" );
70
+ return ContinueWithNoSave (hwnd, L" Quit" );
71
71
}
72
72
return true ;
73
73
}
0 commit comments