diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2013-12-31 10:07:20 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-01-01 16:50:38 +0000 |
commit | 6e04f88d71ed7211cf574db9d07c8de1c2a1a175 (patch) | |
tree | a288108eac8790adb06d090511cd96e0b308f2ec /vcl | |
parent | 12603f99db2e0bb3412ba7868a9ab25dfb88f001 (diff) |
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 <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salinst.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 538747ca7fff..58b0f0fb7a6b 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; |