mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-25 23:37:52 -05:00
Set default focus to name field for new map/layout dialogs
This commit is contained in:
parent
71135a3ba0
commit
ccc0ddd2f2
|
|
@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
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).
|
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).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- The name field now receives focus immediately for the new map/layout dialogs.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix rare crash while quitting Porymap.
|
- Fix rare crash while quitting Porymap.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ NewLayoutDialog::NewLayoutDialog(Project *project, const Layout *layoutToCopy, Q
|
||||||
} else {
|
} else {
|
||||||
restoreGeometry(porymapConfig.newLayoutDialogGeometry);
|
restoreGeometry(porymapConfig.newLayoutDialogGeometry);
|
||||||
}
|
}
|
||||||
|
ui->lineEdit_Name->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
NewLayoutDialog::~NewLayoutDialog()
|
NewLayoutDialog::~NewLayoutDialog()
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ NewMapDialog::NewMapDialog(Project *project, const Map *mapToCopy, QWidget *pare
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
restoreGeometry(porymapConfig.newMapDialogGeometry);
|
restoreGeometry(porymapConfig.newMapDialogGeometry);
|
||||||
|
ui->lineEdit_Name->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adding new map to an existing map list folder. Initialize settings accordingly.
|
// Adding new map to an existing map list folder. Initialize settings accordingly.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user