Fix some typos
This commit is contained in:
parent
e278d48380
commit
43c45f7d98
1 changed files with 3 additions and 4 deletions
|
@ -851,7 +851,7 @@ bool MainWindow::userSetMap(QString map_name) {
|
||||||
|
|
||||||
bool MainWindow::setMap(QString map_name) {
|
bool MainWindow::setMap(QString map_name) {
|
||||||
if (map_name.isEmpty() || map_name == DYNAMIC_MAP_NAME) {
|
if (map_name.isEmpty() || map_name == DYNAMIC_MAP_NAME) {
|
||||||
logInfo(QString("Cannot set map to '%1'").arg(DYNAMIC_MAP_NAME));
|
logInfo(QString("Cannot set map to '%1'").arg(map_name));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1346,7 +1346,7 @@ void MainWindow::onOpenMapListContextMenu(const QPoint &point) {
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
deleteFolderAction = menu.addAction("Delete Map Group");
|
deleteFolderAction = menu.addAction("Delete Map Group");
|
||||||
} else if (itemType == "map_section") {
|
} else if (itemType == "map_section") {
|
||||||
// Right-clicking on an MAPSEC folder
|
// Right-clicking on a MAPSEC folder
|
||||||
addToFolderAction = menu.addAction("Add New Map to Area");
|
addToFolderAction = menu.addAction("Add New Map to Area");
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
deleteFolderAction = menu.addAction("Delete Area");
|
deleteFolderAction = menu.addAction("Delete Area");
|
||||||
|
@ -1541,7 +1541,6 @@ void MainWindow::mapListAddLayout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::mapListAddArea() {
|
void MainWindow::mapListAddArea() {
|
||||||
// Note: there is no checking here for the limits on map section count
|
|
||||||
QDialog dialog(this, Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
|
QDialog dialog(this, Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
|
||||||
dialog.setWindowModality(Qt::ApplicationModal);
|
dialog.setWindowModality(Qt::ApplicationModal);
|
||||||
QDialogButtonBox newItemButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog);
|
QDialogButtonBox newItemButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog);
|
||||||
|
@ -2824,7 +2823,7 @@ void MainWindow::on_actionExport_Stitched_Map_Image_triggered() {
|
||||||
if (!this->editor->map) {
|
if (!this->editor->map) {
|
||||||
QMessageBox warning(this);
|
QMessageBox warning(this);
|
||||||
warning.setText("Notice");
|
warning.setText("Notice");
|
||||||
warning.setInformativeText("Map stich images are not possible without a map selected.");
|
warning.setInformativeText("Map stitch images are not possible without a map selected.");
|
||||||
warning.setStandardButtons(QMessageBox::Ok);
|
warning.setStandardButtons(QMessageBox::Ok);
|
||||||
warning.setDefaultButton(QMessageBox::Cancel);
|
warning.setDefaultButton(QMessageBox::Cancel);
|
||||||
warning.setIcon(QMessageBox::Warning);
|
warning.setIcon(QMessageBox::Warning);
|
||||||
|
|
Loading…
Reference in a new issue