Skip to content
Snippets Groups Projects
Commit d8ad6aa2 authored by hjk's avatar hjk
Browse files

debugger: make changes to default settings stand out in the log

parent 5adefac6
No related branches found
No related tags found
No related merge requests found
......@@ -155,9 +155,14 @@ QString DebuggerSettings::dump() const
ts << "Debugger settings: ";
foreach (SavedAction *item, m_items) {
QString key = item->settingsKey();
if (!key.isEmpty())
ts << '\n' << key << ": " << item->value().toString()
<< " (default: " << item->defaultValue().toString() << ")";
if (!key.isEmpty()) {
const QString current = item->value().toString();
const QString default_ = item->defaultValue().toString();
ts << '\n' << key << ": " << current
<< " (default: " << default_ << ")";
if (current != default_)
ts << " ***";
}
}
return out;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment