Skip to content

Commit

Permalink
Remove unused variable menu_click
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Dec 27, 2023
1 parent cb9df28 commit e8977a1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions client/mapctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,6 @@ void map_view::shortcut_released(Qt::MouseButton bt)
king()->rallies.hover_city = false;
return;
}
if (menu_click) {
menu_click = false;
return;
}
if (!keyboardless_goto_active || goto_is_active()) {
action_button_pressed(pos.x(), pos.y(), SELECT_POPUP);
}
Expand Down
1 change: 0 additions & 1 deletion client/views/view_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ map_view::map_view()
connect(m_renderer, &freeciv::renderer::repaint_needed, this,
qOverload<const QRegion &>(&map_view::update));

menu_click = false;
cursor = -1;
QTimer *timer = new QTimer(this);
setAttribute(Qt::WA_OpaquePaintEvent, true);
Expand Down
2 changes: 0 additions & 2 deletions client/views/view_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ class map_view : public QWidget {
void hide_all_fcwidgets();
void show_all_fcwidgets();

bool menu_click;

double scale() const;

freeciv::tileset_debugger *debugger() const { return m_debugger; }
Expand Down

0 comments on commit e8977a1

Please sign in to comment.