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:
niksedk 2011-06-04 21:06:28 +00:00
parent d70c92090a
commit 86dde2fb89

View File

@ -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;