@ -170,6 +170,7 @@ CSVWorld::GenericCreator::GenericCreator (CSMWorld::Data& data, QUndoStack& undo
connect ( mCreate , SIGNAL ( clicked ( bool ) ) , this , SLOT ( create ( ) ) ) ;
connect ( mCreate , SIGNAL ( clicked ( bool ) ) , this , SLOT ( create ( ) ) ) ;
connect ( mId , SIGNAL ( textChanged ( const QString & ) ) , this , SLOT ( textChanged ( const QString & ) ) ) ;
connect ( mId , SIGNAL ( textChanged ( const QString & ) ) , this , SLOT ( textChanged ( const QString & ) ) ) ;
connect ( mId , SIGNAL ( returnPressed ( ) ) , this , SLOT ( inputReturnPressed ( ) ) ) ;
connect ( & mData , SIGNAL ( idListChanged ( ) ) , this , SLOT ( dataIdListChanged ( ) ) ) ;
connect ( & mData , SIGNAL ( idListChanged ( ) ) , this , SLOT ( dataIdListChanged ( ) ) ) ;
}
}
@ -205,6 +206,14 @@ void CSVWorld::GenericCreator::textChanged (const QString& text)
update ( ) ;
update ( ) ;
}
}
void CSVWorld : : GenericCreator : : inputReturnPressed ( )
{
if ( mCreate - > isEnabled ( ) )
{
create ( ) ;
}
}
void CSVWorld : : GenericCreator : : create ( )
void CSVWorld : : GenericCreator : : create ( )
{
{
if ( ! mLocked )
if ( ! mLocked )