vcl/osx/salinst.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 6e04f88d71ed7211cf574db9d07c8de1c2a1a175
Author: Michael Meeks <[email protected]>
Date: Tue Dec 31 10:07:20 2013 +0000
fdo#39007: blind fix for renamed OS X restore-state file
Remove also a potential restorecount.txt file (as reported in the bug) in
addition to a potential restorecount.plist.
Change-Id: I96fb688e9dda804f240cad8f2109c5880b544302
Reviewed-on: https://gerrit.libreoffice.org/7239
Reviewed-by: Tor Lillqvist <[email protected]>
Tested-by: Tor Lillqvist <[email protected]>
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 538747c..58b0f0f 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -187,6 +187,7 @@ static void initNSApp()
sal_Bool ImplSVMainHook( int * pnInit )
{
unlink([[NSString stringWithFormat:@"%@/Library/Saved Application
State/%s.savedState/restorecount.plist", NSHomeDirectory(),
MACOSX_BUNDLE_IDENTIFIER] UTF8String]);
+ unlink([[NSString stringWithFormat:@"%@/Library/Saved Application
State/%s.savedState/restorecount.txt", NSHomeDirectory(),
MACOSX_BUNDLE_IDENTIFIER] UTF8String]);
gpnInit = pnInit;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits