Skip to content

Commit

Permalink
editor: add user visiable error message on invalid loction id
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed May 7, 2018
1 parent 1ec33d8 commit 9bb9dd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/editor/palette/location_palette.cpp
Expand Up @@ -24,6 +24,7 @@
#include "editor/editor_common.hpp"
#include "editor/toolkit/editor_toolkit.hpp"
#include "gui/dialogs/edit_text.hpp"
#include "gui/dialogs/transient_message.hpp"

#include "formula/string_utils.hpp"

Expand Down Expand Up @@ -267,6 +268,10 @@ void location_palette::adjust_size(const SDL_Rect& target)
add_item(newid);
}
else {
gui2::show_transient_message(
_("Error"),
_("Invalid location id")
);
//TODO: a user visible messae would be nice.
ERR_ED << "entered invalid location id\n";
}
Expand Down

0 comments on commit 9bb9dd3

Please sign in to comment.