diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index 75302bf2..2e1ddda6 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -1585,7 +1585,7 @@ - + Qt::Horizontal @@ -1679,7 +1679,7 @@ - + Qt::Horizontal @@ -1773,7 +1773,7 @@ - + Qt::Horizontal @@ -1873,7 +1873,7 @@ - + Qt::Horizontal @@ -1967,7 +1967,7 @@ - + Qt::Horizontal diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dc48dcc3..e8c48085 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2156,6 +2156,8 @@ void MainWindow::eventTabChanged(int index) { case Event::Group::Heal: selectedEvent = selectedHealspot; break; + default: + break; } if (!isProgrammaticEventTabChange) { @@ -2192,7 +2194,6 @@ void MainWindow::on_toolButton_deleteObject_clicked() { if (editor->selected_events->length()) { DraggablePixmapItem *nextSelectedEvent = nullptr; QList selectedEvents; - int numEvents = editor->selected_events->length(); int numDeleted = 0; for (DraggablePixmapItem *item : *editor->selected_events) { Event::Group event_group = item->event->getEventGroup();