Skip to content

Commit 8cbe5e9

Browse files
committed
Improve log output when migrating settings.
Signed-off-by: Camila Ayres <[email protected]>
1 parent 0e19db7 commit 8cbe5e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/application.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,16 @@ bool Application::configVersionMigration()
198198
QTimer::singleShot(0, qApp, &QCoreApplication::quit);
199199
return false;
200200
}
201+
}
201202

203+
if (!deleteKeys.isEmpty()) {
202204
auto settings = ConfigFile::settingsWithGroup("foo");
203205
settings->endGroup();
204206

205207
// Wipe confusing keys from the future, ignore the others
206208
for (const auto &badKey : std::as_const(deleteKeys)) {
207209
settings->remove(badKey);
210+
qCInfo(lcApplication) << "Migration: removed" << badKey << "key from settings.";
208211
}
209212
}
210213

0 commit comments

Comments
 (0)