diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/modlist.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 055778f3..f820e4d1 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -555,15 +555,16 @@ bool ModList::renameMod(int index, const QString &newName) m_Profile->cancelModlistWrite(); - if (modInfo->setName(nameFixed)) + if (modInfo->setName(nameFixed)) { // Notice there is a good chance that setName() updated the modinfo indexes // the modRenamed() call will refresh the indexes in the current profile // and update the modlists in all profiles emit modRenamed(oldName, nameFixed); - } + } - // invalidate the currently displayed state of this list - notifyChange(-1); + // invalidate the currently displayed state of this list + notifyChange(-1); + } return true; } |
