Skip to content

Commit ccc0ddd

Browse files
Set default focus to name field for new map/layout dialogs
1 parent 71135a3 commit ccc0ddd

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project somewhat adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The MAJOR version number is bumped when there are **"Breaking Changes"** in the pret projects. For more on this, see [the manual page on breaking changes](https://huderlem.github.io/porymap/manual/breaking-changes.html).
66

77
## [Unreleased]
8+
### Changed
9+
- The name field now receives focus immediately for the new map/layout dialogs.
10+
811
### Fixed
912
- Fix rare crash while quitting Porymap.
1013

src/ui/newlayoutdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ NewLayoutDialog::NewLayoutDialog(Project *project, const Layout *layoutToCopy, Q
4747
} else {
4848
restoreGeometry(porymapConfig.newLayoutDialogGeometry);
4949
}
50+
ui->lineEdit_Name->setFocus();
5051
}
5152

5253
NewLayoutDialog::~NewLayoutDialog()

src/ui/newmapdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ NewMapDialog::NewMapDialog(Project *project, const Map *mapToCopy, QWidget *pare
6262

6363
refresh();
6464
restoreGeometry(porymapConfig.newMapDialogGeometry);
65+
ui->lineEdit_Name->setFocus();
6566
}
6667

6768
// Adding new map to an existing map list folder. Initialize settings accordingly.

0 commit comments

Comments
 (0)