NOISSUE improve launch button interaction

Now has a drop-down arrow that actually works as expected.
This commit is contained in:
Petr Mrázek 2016-11-01 23:33:20 +01:00
parent 2e0a45cc2f
commit b6b2350e02

View File

@ -679,6 +679,8 @@ void MainWindow::showInstanceContextMenu(const QPoint &pos)
void MainWindow::updateToolsMenu() void MainWindow::updateToolsMenu()
{ {
QMenu *launchMenu = ui->actionLaunchInstance->menu(); QMenu *launchMenu = ui->actionLaunchInstance->menu();
QToolButton *launchButton = dynamic_cast<QToolButton*>(ui->instanceToolBar->widgetForAction(ui->actionLaunchInstance));
launchButton->setPopupMode(QToolButton::MenuButtonPopup);
if (launchMenu) if (launchMenu)
{ {
launchMenu->clear(); launchMenu->clear();