diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2013-12-31 10:07:20 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-01-02 10:51:49 +0000 |
commit | 4df7072a88691fb11916dc23f5bd0f35cb6227e6 (patch) | |
tree | 5324f234bb6a3acafd8e07e92af27abf1bc63a69 | |
parent | 12a79cc9ff44d0e54197f816bca22bff3d3469d2 (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>
Signed-off-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | vcl/aqua/source/app/salinst.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx index 999a19f77ce1..424b734dc916 100644 --- a/vcl/aqua/source/app/salinst.cxx +++ b/vcl/aqua/source/app/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; |