Skip to content

Commit

Permalink
remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jNullj committed Aug 25, 2023
1 parent c5ca0bb commit 2eecf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ void Config::init(const QString& configFileName, const QString& localConfigFileN
#endif
oldLocalConfigPath += QString("/keepassxc%1.ini").arg(suffix);
oldLocalConfigPath = QDir::toNativeSeparators(oldLocalConfigPath);
if (!localConfigFileName.isEmpty() && !QFile::exists(localConfigFileName) && QFile::exists(oldLocalConfigPath)) {
if (!QFile::exists(localConfigFileName) && QFile::exists(oldLocalConfigPath)) {
QDir().mkpath(QFileInfo(localConfigFileName).absolutePath());
QFile::copy(oldLocalConfigPath, localConfigFileName);
QFile::remove(oldLocalConfigPath);
Expand Down

0 comments on commit 2eecf98

Please sign in to comment.