Fix crash when using Japanese on Windows

Work around possible GLib bug in string comparison.
This commit is contained in:
Lawrence Lee 2025-02-22 15:00:23 -08:00
parent 61004ef5da
commit bc7d636620
No known key found for this signature in database
GPG Key ID: F457B4971BE3C53C

View File

@ -138,12 +138,12 @@ ProfilePanel::~ProfilePanel ()
bool ProfilePanel::isCustomSelected()
{
return profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PCUSTOM") + ")");
return profiles->getCurrentLabel().collate_key() == Glib::ustring ("(" + M("PROFILEPANEL_PCUSTOM") + ")").collate_key();
}
bool ProfilePanel::isLastSavedSelected()
{
return profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PLASTSAVED") + ")");
return profiles->getCurrentLabel().collate_key() == Glib::ustring ("(" + M("PROFILEPANEL_PLASTSAVED") + ")").collate_key();
}
Gtk::TreeIter ProfilePanel::getCustomRow()