Ignore added stockpile keys when renaming stockpiles

Fixes #1267
develop
lethosor 2018-05-09 10:25:55 -04:00
parent 2a52582c1f
commit ead0092765
5 changed files with 15 additions and 0 deletions

@ -181,6 +181,9 @@ struct dump_hook : public df::viewscreen_dwarfmodest
bool handleInput(set<df::interface_key> *input)
{
if (Gui::inRenameBuilding())
return false;
building_stockpilest *sp = get_selected_stockpile();
if (!sp)
return false;

@ -194,6 +194,9 @@ struct melt_hook : public df::viewscreen_dwarfmodest
bool handleInput(set<df::interface_key> *input)
{
if (Gui::inRenameBuilding())
return false;
building_stockpilest *sp = get_selected_stockpile();
if (!sp)
return false;

@ -389,6 +389,9 @@ struct trade_hook : public df::viewscreen_dwarfmodest
bool handleInput(set<df::interface_key> *input)
{
if (Gui::inRenameBuilding())
return false;
building_stockpilest *sp = get_selected_stockpile();
if (!sp)
return false;

@ -376,6 +376,9 @@ struct stockpiles_import_hook : public df::viewscreen_dwarfmodest
bool handleInput ( set<df::interface_key> *input )
{
if ( Gui::inRenameBuilding() )
return false;
df::building_stockpilest *sp = get_selected_stockpile();
if ( !sp )
return false;

@ -1451,6 +1451,9 @@ struct stocks_stockpile_hook : public df::viewscreen_dwarfmodest
bool handleInput(set<df::interface_key> *input)
{
if (Gui::inRenameBuilding())
return false;
df::building_stockpilest *sp = get_selected_stockpile();
if (!sp)
return false;