* Returns to the previous screen * @param action Pointer to an action. */
| 121 | * @param action Pointer to an action. |
| 122 | */ |
| 123 | void BaseNameState::btnOkClick(Action *) |
| 124 | { |
| 125 | if (!_edtName->getText().empty()) |
| 126 | { |
| 127 | _game->popState(); |
| 128 | _game->popState(); |
| 129 | if (!_first || Options::customInitialBase) |
| 130 | { |
| 131 | if (!_first) |
| 132 | { |
| 133 | _game->popState(); |
| 134 | } |
| 135 | _game->pushState(new PlaceLiftState(_game, _base, _globe, _first)); |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | } |