Skip to content

Commit db48aa6

Browse files
committed
Fix container item crash bug
1 parent 4269ee6 commit db48aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/container_properties_window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void ContainerItemButton::OnAddItem(wxCommandEvent& WXUNUSED(event))
7373
{
7474
FindItemDialog dialog(GetParent(), "Choose Item to add", true);
7575

76-
if(dialog.ShowModal() != 0) {
76+
if(dialog.ShowModal() == wxID_OK) {
7777
Container* container = getParentContainer();
7878
ItemVector& itemVector = container->getVector();
7979

0 commit comments

Comments
 (0)