Fix launching with data in ~/.TelegramDesktop
Regression was introduced in 60612635ef
.
Fixes #7289.
This commit is contained in:
parent
844e9b60dd
commit
3b327d9397
|
@ -400,7 +400,9 @@ QString psAppDataPath() {
|
|||
if (!home.isEmpty()) {
|
||||
auto oldPath = home + qsl(".TelegramDesktop/");
|
||||
auto oldSettingsBase = oldPath + qsl("tdata/settings");
|
||||
if (QFile(oldSettingsBase + '0').exists() || QFile(oldSettingsBase + '1').exists()) {
|
||||
if (QFile(oldSettingsBase + '0').exists()
|
||||
|| QFile(oldSettingsBase + '1').exists()
|
||||
|| QFile(oldSettingsBase + 's').exists()) {
|
||||
return oldPath;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue