Commit bde1f044 authored by David Schulz's avatar David Schulz
Browse files

Utils: Fix replace with preserve case.

Task-number: QTCREATORBUG-11610
Task-number: QTCREATORBUG-11194

Change-Id: Ia5e70dad0f66ec4d6ee610b59963321ce1fb20ad
Reviewed-by: default avatarChristian Stenger <>
parent 4d7c010a
......@@ -342,7 +342,7 @@ namespace Utils {
namespace Internal {
QString matchCaseReplacement(const QString &originalText, const QString &replaceText)
if (originalText.isEmpty())
if (originalText.isEmpty() || replaceText.isEmpty())
return replaceText;
//Now proceed with actual case matching
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment