We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3117b43 commit b13a96fCopy full SHA for b13a96f
src/libsync/account.cpp
@@ -393,6 +393,11 @@ void Account::tryMigrateCookieJar()
393
QString oldCookieJarPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/cookies" + id() + ".db";
394
if (QFile::exists(oldCookieJarPath))
395
{
396
+ if (QFile::exists(cookieJarPath()))
397
+ {
398
+ qWarning() << "Both old cookie jar and new cookie jar exists. Abort migration";
399
+ return;
400
+ }
401
qDebug() << "Migrating cookie jar from "<< oldCookieJarPath << "to " << cookieJarPath();
402
if (!QFile::rename(oldCookieJarPath, cookieJarPath()))
403
qWarning() << "Failed to migrate cookie jar";
0 commit comments