Skip to content
Permalink
Browse files

Conform to existing code style

  • Loading branch information...
AlexTMjugador committed Apr 14, 2019
1 parent 0ce637b commit 2be98baaba61d617fee15afea72c22ff85f8a6a5
Showing with 4 additions and 4 deletions.
  1. +4 −4 application/MainWindow.cpp
@@ -902,7 +902,7 @@ void MainWindow::showInstanceContextMenu(const QPoint &pos)
void MainWindow::updateToolsMenu()
{
QToolButton *launchButton = dynamic_cast<QToolButton*>(ui->instanceToolBar->widgetForAction(ui->actionLaunchInstance));
QToolButton* launchOfflineButton = dynamic_cast<QToolButton*>(ui->instanceToolBar->widgetForAction(ui->actionLaunchInstanceOffline));
QToolButton *launchOfflineButton = dynamic_cast<QToolButton*>(ui->instanceToolBar->widgetForAction(ui->actionLaunchInstanceOffline));

if(!m_selectedInstance || m_selectedInstance->isRunning())
{
@@ -914,7 +914,7 @@ void MainWindow::updateToolsMenu()
}

QMenu *launchMenu = ui->actionLaunchInstance->menu();
QMenu* launchOfflineMenu = ui->actionLaunchInstanceOffline->menu();
QMenu *launchOfflineMenu = ui->actionLaunchInstanceOffline->menu();
launchButton->setPopupMode(QToolButton::MenuButtonPopup);
launchOfflineButton->setPopupMode(QToolButton::MenuButtonPopup);
if (launchMenu)
@@ -934,7 +934,7 @@ void MainWindow::updateToolsMenu()
}

QAction *normalLaunch = launchMenu->addAction(tr("Launch"));
QAction* normalLaunchOffline = launchOfflineMenu->addAction(tr("Launch"));
QAction *normalLaunchOffline = launchOfflineMenu->addAction(tr("Launch"));
connect(normalLaunch, &QAction::triggered, [this]()
{
MMC->launch(m_selectedInstance, true);
@@ -948,7 +948,7 @@ void MainWindow::updateToolsMenu()
for (auto profiler : MMC->profilers().values())
{
QAction *profilerAction = launchMenu->addAction(profiler->name());
QAction* profilerOfflineAction = launchOfflineMenu->addAction(profiler->name());
QAction *profilerOfflineAction = launchOfflineMenu->addAction(profiler->name());
QString error;
if (!profiler->check(&error))
{

0 comments on commit 2be98ba

Please sign in to comment.
You can’t perform that action at this time.