Merge branch 'master' into connections
This commit is contained in:
commit
186e20171b
4 changed files with 9 additions and 5 deletions
|
@ -22,6 +22,8 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
|
|||
- Fix config files being written before the project is opened successfully.
|
||||
- Fix the map and other project info still displaying if a new project fails to open.
|
||||
- Fix unsaved changes being ignored when quitting (such as with Cmd+Q on macOS).
|
||||
- Fix `About porymap` opening a new window each time it's activated.
|
||||
- Fix the `Edit History` window not raising to the front when reactivated.
|
||||
- New maps are now always inserted in map dropdowns at the correct position, rather than at the bottom of the list until the project is reloaded.
|
||||
|
||||
## [5.4.1] - 2024-03-21
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "projectsettingseditor.h"
|
||||
#include "customscriptseditor.h"
|
||||
#include "updatepromoter.h"
|
||||
#include "aboutporymap.h"
|
||||
|
||||
|
||||
|
||||
|
@ -317,6 +318,7 @@ private:
|
|||
QPointer<CustomScriptsEditor> customScriptsEditor = nullptr;
|
||||
QPointer<UpdatePromoter> updatePromoter = nullptr;
|
||||
QPointer<NetworkAccessManager> networkAccessManager = nullptr;
|
||||
QPointer<AboutPorymap> aboutWindow = nullptr;
|
||||
FilterChildrenProxyModel *mapListProxyModel;
|
||||
QStandardItemModel *mapListModel;
|
||||
QList<QStandardItem*> *mapGroupItemsList;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "aboutporymap.h"
|
||||
#include "project.h"
|
||||
#include "log.h"
|
||||
#include "editor.h"
|
||||
|
@ -337,7 +336,7 @@ void MainWindow::initEditor() {
|
|||
QAction *showHistory = new QAction("Show Edit History...", this);
|
||||
showHistory->setObjectName("action_ShowEditHistory");
|
||||
showHistory->setShortcut(QKeySequence("Ctrl+E"));
|
||||
connect(showHistory, &QAction::triggered, [undoView](){ undoView->show(); });
|
||||
connect(showHistory, &QAction::triggered, [this, undoView](){ openSubWindow(undoView); });
|
||||
|
||||
ui->menuEdit->addAction(showHistory);
|
||||
|
||||
|
@ -2869,9 +2868,9 @@ void MainWindow::on_toolButton_CollapseAll_clicked()
|
|||
|
||||
void MainWindow::on_actionAbout_Porymap_triggered()
|
||||
{
|
||||
AboutPorymap *window = new AboutPorymap(this);
|
||||
window->setAttribute(Qt::WA_DeleteOnClose);
|
||||
window->show();
|
||||
if (!this->aboutWindow)
|
||||
this->aboutWindow = new AboutPorymap(this);
|
||||
openSubWindow(this->aboutWindow);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpen_Log_File_triggered() {
|
||||
|
|
|
@ -7,6 +7,7 @@ AboutPorymap::AboutPorymap(QWidget *parent) :
|
|||
ui(new Ui::AboutPorymap)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
this->ui->label_Version->setText(QString("Version %1 - %2").arg(QCoreApplication::applicationVersion()).arg(QStringLiteral(__DATE__)));
|
||||
this->ui->textBrowser->setSource(QUrl("qrc:/CHANGELOG.md"));
|
||||
|
|
Loading…
Reference in a new issue