mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Fixed a bug regarding detection of Data directory (thx XhmikosR)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@452 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
d70c92090a
commit
86dde2fb89
@ -84,7 +84,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
if (Instance._dataDir == null)
|
||||
{
|
||||
string appDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Subtitle Edit");
|
||||
if (File.Exists(Path.Combine(BaseDirectory, "uninstall.ico")) && Directory.Exists(appDataPath))
|
||||
if (File.Exists(Path.Combine(BaseDirectory, "unins000.dat")) && Directory.Exists(appDataPath))
|
||||
Instance._dataDir = appDataPath + Path.DirectorySeparatorChar;
|
||||
else
|
||||
Instance._dataDir = BaseDirectory;
|
||||
|
Loading…
Reference in New Issue
Block a user