summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2010-09-14 14:42:40 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-09-14 14:42:40 +0200
commitf8e1d2438199c4a76ceeb36352678c415e25272c (patch)
tree6dcedd4c5b5b68b6d008a59b99e40dac58e55a22
parent20439a8dd19933c0fb956502c4f85dc5b92aa50d (diff)
win32-dont-attempt-restart.diff: Don't attempt to restart OOo after crash
n#524250 Don't attempt to restart soffice.bin immediately if it crashes. At such a restart, if the document recovery dialog is cancelled, an empty Writer document is opened even if the user was editing some other kind of document. Some customers are annoyed by this. And the automatic restart doesn't work on Linux anyway, so for consistency it doesn't hurt if we force it not to work on Windows, either.
-rw-r--r--desktop/win32/source/officeloader/officeloader.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx
index b85a72555935..1733e1f63bd5 100644
--- a/desktop/win32/source/officeloader/officeloader.cxx
+++ b/desktop/win32/source/officeloader/officeloader.cxx
@@ -417,8 +417,7 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
CloseHandle( aProcessInfo.hProcess );
CloseHandle( aProcessInfo.hThread );
}
- } while ( fSuccess
- && ( ::desktop::ExitHelper::E_CRASH_WITH_RESTART == dwExitCode || ::desktop::ExitHelper::E_NORMAL_RESTART == dwExitCode ));
+ } while ( false );
delete[] lpCommandLine;
return fSuccess ? dwExitCode : -1;