Commit 8c61eb04 authored by Tobias Hunger's avatar Tobias Hunger

Avoid sending signals if nothing changed

Change-Id: Ie34a39f7d5035ebb7c9bbec199680605c072181d
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 9e9dd993
......@@ -55,8 +55,10 @@ void SubmitEditorFile::rename(const QString &newName)
void SubmitEditorFile::setFileName(const QString &name)
{
m_fileName = name;
emit changed();
if (m_fileName == name)
return;
m_fileName = name;
emit changed();
}
void SubmitEditorFile::setModified(bool modified)
......
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