Qt: Always show the stop button in the toolbar

Reverts a previous Qt change that was likely not intended to match WX.
This commit is contained in:
Léo Lam 2017-09-26 17:42:51 +02:00
parent 8dcd5cdd1d
commit 5c2e03380f
1 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,6 @@ void ToolBar::OnEmulationStateChanged(Core::State state)
{ {
bool running = state != Core::State::Uninitialized; bool running = state != Core::State::Uninitialized;
m_stop_action->setEnabled(running); m_stop_action->setEnabled(running);
m_stop_action->setVisible(running);
m_fullscreen_action->setEnabled(running); m_fullscreen_action->setEnabled(running);
m_screenshot_action->setEnabled(running); m_screenshot_action->setEnabled(running);
@ -62,7 +61,7 @@ void ToolBar::MakeActions()
m_controllers_action = AddAction(this, tr("Controllers"), this, &ToolBar::ControllersPressed); m_controllers_action = AddAction(this, tr("Controllers"), this, &ToolBar::ControllersPressed);
m_controllers_action->setEnabled(true); m_controllers_action->setEnabled(true);
// Ensure every button has the same width // Ensure every button has about the same width
std::vector<QWidget*> items; std::vector<QWidget*> items;
for (const auto& action : {m_open_action, m_play_action, m_pause_action, m_stop_action, for (const auto& action : {m_open_action, m_play_action, m_pause_action, m_stop_action,
m_stop_action, m_fullscreen_action, m_screenshot_action, m_stop_action, m_fullscreen_action, m_screenshot_action,