Commit 5b0af38
fix: crash when calling DGioSettings::setValue
Though whether key is actually existed has been judged in DGioSettingsPrivate::trySet,
when calling g_settings_get_value, 'gkey' still seems to be empty or NULL.
Not sure what happened when converted from QString to gchar*
Log: Use DGioPrivate::convertToGChar to replace QString::toUtf8().constData()
in DGioSettingsPrivate::trySet, just like DGioSettingsPrivate::value1 parent c22fc13 commit 5b0af38
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
0 commit comments