-
-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #4706: don't replace ampersands when loading from plain text #4734
Conversation
I think this is the wrong way to go about this, searching the db is one of the most expensive operations the application can do and I'd like to minimise it, instead of always searching the db every single time a replacement is done maybe just don't do the & replacement, perhaps do it after it searches for the name (see db guessCard which also does up to three db searches per card and mangles it a bit). |
{{"Aether Adept", 1}, {"Fire // Ice", 2}, {"Pain // Suffering", 3}, {"Forest", 4}}, | ||
{{"Aether Adept", 1}, | ||
{"Fire // Ice", 2}, | ||
{"Minsc & Boo, Timeless Heroes", 1}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these used to go 1234, what have you done zach 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like seeing const references, though I am still not sure how impactful they are for qt objects that are always pointers to their data anyway
Tested by loading in from clipboard