Fix crash when using Japanese on Windows
Work around possible GLib bug in string comparison.
This commit is contained in:
parent
61004ef5da
commit
bc7d636620
@ -138,12 +138,12 @@ ProfilePanel::~ProfilePanel ()
|
|||||||
|
|
||||||
bool ProfilePanel::isCustomSelected()
|
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()
|
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()
|
Gtk::TreeIter ProfilePanel::getCustomRow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user