소스 검색

Fix crash on attempting to rename preset to the same name

Ivan Savenko 9 달 전
부모
커밋
f3e8291ecd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      launcher/startGame/StartGameTab.cpp

+ 1 - 1
launcher/startGame/StartGameTab.cpp

@@ -468,7 +468,7 @@ void StartGameTab::on_buttonPresetRename_clicked()
 			currentName,
 			&ok);
 
-		if (ok && !newName.isEmpty())
+		if (ok && !newName.isEmpty() && newName != currentName)
 		{
 			getMainWindow()->getModView()->renamePreset(currentName, newName);
 			refreshPresets();