Commit dafb8f44 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Dont give warning if newName == oldname

parent bc60a534
......@@ -146,6 +146,10 @@ void KateProjectItem::setData(const QVariant &value, int role)
QString newName = oldName;
newName.replace(oldFileName, newFileName);
if (oldName == newName) {
if (!QFile::rename(oldName, newName)) {
QMessageBox::critical(nullptr, i18n("Error"), i18n("File name already exists"));
Supports Markdown
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