mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-23 00:56:47 -05:00
Remove erroneous comment, add missing static
This commit is contained in:
@@ -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"},
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user