mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix bug #5525: Windows XP doesn't shut down with LyX open
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33077 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ff41842b03
commit
51d70699ef
@ -66,7 +66,7 @@ using ::boost::scoped_ptr;
|
||||
namespace lyx {
|
||||
|
||||
// Keep the linker happy on Windows
|
||||
void emergencyCleanup()
|
||||
void lyx_exit(int)
|
||||
{}
|
||||
|
||||
namespace support {
|
||||
|
@ -38,7 +38,7 @@ using namespace std;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
void emergencyCleanup();
|
||||
void lyx_exit(int);
|
||||
|
||||
namespace support {
|
||||
namespace os {
|
||||
@ -194,7 +194,7 @@ BOOL terminate_handler(DWORD event)
|
||||
if (event == CTRL_CLOSE_EVENT
|
||||
|| event == CTRL_LOGOFF_EVENT
|
||||
|| event == CTRL_SHUTDOWN_EVENT) {
|
||||
lyx::emergencyCleanup();
|
||||
lyx::lyx_exit(1);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
@ -72,7 +72,7 @@ using namespace std;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
void emergencyCleanup();
|
||||
void lyx_exit(int);
|
||||
|
||||
namespace support {
|
||||
namespace os {
|
||||
@ -88,7 +88,7 @@ BOOL terminate_handler(DWORD event)
|
||||
if (event == CTRL_CLOSE_EVENT
|
||||
|| event == CTRL_LOGOFF_EVENT
|
||||
|| event == CTRL_SHUTDOWN_EVENT) {
|
||||
lyx::emergencyCleanup();
|
||||
lyx::lyx_exit(1);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
@ -57,7 +57,7 @@ Messages & getGuiMessages()
|
||||
|
||||
|
||||
// Keep the linker happy on Windows
|
||||
void emergencyCleanup()
|
||||
void lyx_exit(int)
|
||||
{}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user