Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Nov 9, 2024
1 parent e278d48 commit 43c45f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ bool MainWindow::userSetMap(QString map_name) {

bool MainWindow::setMap(QString 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;
}

Expand Down Expand Up @@ -1346,7 +1346,7 @@ void MainWindow::onOpenMapListContextMenu(const QPoint &point) {
menu.addSeparator();
deleteFolderAction = menu.addAction("Delete Map Group");
} 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");
menu.addSeparator();
deleteFolderAction = menu.addAction("Delete Area");
Expand Down Expand Up @@ -1541,7 +1541,6 @@ void MainWindow::mapListAddLayout() {
}

void MainWindow::mapListAddArea() {
// Note: there is no checking here for the limits on map section count
QDialog dialog(this, Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
dialog.setWindowModality(Qt::ApplicationModal);
QDialogButtonBox newItemButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog);
Expand Down Expand Up @@ -2824,7 +2823,7 @@ void MainWindow::on_actionExport_Stitched_Map_Image_triggered() {
if (!this->editor->map) {
QMessageBox warning(this);
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.setDefaultButton(QMessageBox::Cancel);
warning.setIcon(QMessageBox::Warning);
Expand Down

0 comments on commit 43c45f7

Please sign in to comment.