diff options
Diffstat (limited to 'src/modules/options/optw_identity.cpp')
| -rw-r--r-- | src/modules/options/optw_identity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/options/optw_identity.cpp b/src/modules/options/optw_identity.cpp index 649663da6..f6c1a9045 100644 --- a/src/modules/options/optw_identity.cpp +++ b/src/modules/options/optw_identity.cpp @@ -584,13 +584,13 @@ void KviIdentityAvatarOptionsWidget::chooseAvatar() { // local path, loaded QString tmp = szCurrent; - int idx = tmp.findRev("/"); + int idx = tmp.lastIndexOf("/"); if(idx != -1) { szCurrent = tmp.right(tmp.length() - (idx + 1)); tmp = szCurrent; } - idx = tmp.findRev("\\"); + idx = tmp.lastIndexOf("\\"); if(idx != -1) { szCurrent = tmp.right(tmp.length() - (idx + 1)); |
