Remove erroneous comment, add missing static

This commit is contained in:
GriffinR
2025-03-02 18:33:50 -05:00
parent 75dbd25630
commit 4df7b9319b
2 changed files with 1 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ QList<Event::Type> Event::types() {
}
QString Event::typeToString(Event::Type type) {
const QMap<Event::Type, QString> typeToStringMap = {
static const QMap<Event::Type, QString> typeToStringMap = {
{Event::Type::Object, "Object"},
{Event::Type::CloneObject, "Clone Object"},
{Event::Type::Warp, "Warp"},

View File

@@ -2109,7 +2109,6 @@ void MainWindow::updateSelectedEvents() {
ui->tabWidget_EventType->setCurrentWidget(ui->tab_Multiple);
}
// (Currently 'events' can't be empty here, but we'll check anyway in case that changes)
if (!events.isEmpty()) {
// Set the 'New Event' button to be the type of the most recently-selected event
ui->newEventToolButton->selectEventType(events.constLast()->getEventType());