Commit ec7b4f33 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Bug fixed in the UIData renaming function.

parent 0e3f1174
......@@ -39,12 +39,13 @@ void UIProject::Rename( GenericUIData* data, const QString& newFileName )
{
m_ItemByNames.remove( data->GetFileName() );
QString oldFileName = data->GetFileName();
data->Rename( newFileName );
EnsureUniqueNameFor( data );
m_ItemByNames.insert( data->GetFileName(), data );
OnRenamingData( data, data->GetFileName() );
OnRenamingData( data, oldFileName, data->GetFileName() );
}
......
......@@ -55,6 +55,7 @@ public:
virtual void OnAddingData( GenericUIData *data ) {}
virtual void OnRemovingData( GenericUIData *data ) {}
virtual void OnRenamingData( GenericUIData* data,
const QString& oldFileName,
const QString& newFileName ) {}
virtual void OnDeletingData( GenericUIData *data ) {}
......
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