diff options
author | PandaNinjas <admin@malwarefight.wip.la> | 2023-06-07 19:37:54 -0400 |
---|---|---|
committer | PandaNinjas <admin@malwarefight.wip.la> | 2023-06-07 19:37:54 -0400 |
commit | 318d11481d719cf537ecdc00f8d676494bab22b6 (patch) | |
tree | 081a070aeeb4ca0f05fceef19eb64d5075edaf04 /launcher/ui | |
parent | 5d425ecc025aa1fc4a5292961a5ff1b18a108885 (diff) | |
download | PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.tar.gz PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.tar.bz2 PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.zip |
Resolve other switch fallthrough issues
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/instanceview/AccessibleInstanceView.cpp | 2 | ||||
-rw-r--r-- | launcher/ui/pages/instance/WorldListPage.cpp | 1 | ||||
-rw-r--r-- | launcher/ui/setupwizard/JavaWizardPage.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/launcher/ui/instanceview/AccessibleInstanceView.cpp b/launcher/ui/instanceview/AccessibleInstanceView.cpp index 7de3ac72..2e7b8300 100644 --- a/launcher/ui/instanceview/AccessibleInstanceView.cpp +++ b/launcher/ui/instanceview/AccessibleInstanceView.cpp @@ -248,8 +248,8 @@ bool AccessibleInstanceView::selectColumn(int column) if (view()->selectionBehavior() != QAbstractItemView::SelectColumns && rowCount() > 1) { return false; } - // fallthrough intentional } + /* fallthrough */ case QAbstractItemView::ContiguousSelection: { if ((!column || !view()->selectionModel()->isColumnSelected(column - 1, view()->rootIndex())) && !view()->selectionModel()->isColumnSelected(column + 1, view()->rootIndex())) { view()->clearSelection(); diff --git a/launcher/ui/pages/instance/WorldListPage.cpp b/launcher/ui/pages/instance/WorldListPage.cpp index b6ad159e..b5dc5a17 100644 --- a/launcher/ui/pages/instance/WorldListPage.cpp +++ b/launcher/ui/pages/instance/WorldListPage.cpp @@ -338,6 +338,7 @@ void WorldListPage::mceditState(LoggedProcess::State state) case LoggedProcess::Aborted: { failed = true; + break; } case LoggedProcess::Running: case LoggedProcess::Finished: diff --git a/launcher/ui/setupwizard/JavaWizardPage.cpp b/launcher/ui/setupwizard/JavaWizardPage.cpp index 14683778..e8833535 100644 --- a/launcher/ui/setupwizard/JavaWizardPage.cpp +++ b/launcher/ui/setupwizard/JavaWizardPage.cpp @@ -69,6 +69,7 @@ bool JavaWizardPage::validatePage() case JavaSettingsWidget::ValidationStatus::AllOK: { settings->set("JavaPath", m_java_widget->javaPath()); + break; } case JavaSettingsWidget::ValidationStatus::JavaBad: { |