コード例 #1
0
ファイル: command.cpp プロジェクト: mcirsta/lignumCAD
void RenameCommand::unexecute ( void )
{
  ModelItem* item = model_->lookup( new_db_url_ );
  if ( item == 0 ) {
    cerr << "Yikes, item did not exist!" << endl;
    return;
  }

  item->setName( old_db_url_.name() );
}