Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/SetDefaultNameAction.cpp

    rbcf653 rc89fb4  
    1 /*
    2  * Project: MoleCuilder
    3  * Description: creates and alters molecular systems
    4  * Copyright (C)  2010 University of Bonn. All rights reserved.
    5  * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
    6  */
    7 
    81/*
    92 * SetDefaultNameAction.cpp
     
    125 *      Author: heber
    136 */
    14 
    15 // include config.h
    16 #ifdef HAVE_CONFIG_H
    17 #include <config.h>
    18 #endif
    197
    208#include "Helpers/MemDebug.hpp"
     
    7462
    7563  defaultname = World::getInstance().getDefaultName();
    76   WorldSetDefaultNameState *UndoState = new WorldSetDefaultNameState(defaultname);
    7764  ValueStorage::getInstance().queryCurrentValue(NAME, defaultname);
    7865
    7966  World::getInstance().setDefaultName(defaultname);
    8067  DoLog(0) && (Log() << Verbose(0) << "Default name of new molecules set to " << World::getInstance().getDefaultName() << "." << endl);
    81   return Action::state_ptr(UndoState);
     68  return Action::success;
    8269}
    8370
     
    8774  string newName = World::getInstance().getDefaultName();
    8875  World::getInstance().setDefaultName(state->lastName);
    89   DoLog(0) && (Log() << Verbose(0) << "Default name of new molecules set to " << World::getInstance().getDefaultName() << "." << endl);
    9076
    9177  return Action::state_ptr(new WorldSetDefaultNameState(newName));
Note: See TracChangeset for help on using the changeset viewer.