From c3264b520234bbe299e263bed82d5068554c3cb9 Mon Sep 17 00:00:00 2001 From: Diegoisawesome Date: Thu, 27 Sep 2018 10:47:05 -0500 Subject: [PATCH] Fix double-clicking on group crash --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 35392f2c..dbf340f1 100755 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -531,7 +531,7 @@ void MainWindow::currentMetatilesSelectionChanged() void MainWindow::on_mapList_activated(const QModelIndex &index) { QVariant data = index.data(Qt::UserRole); - if (!data.isNull()) { + if (index.data(MapListUserRoles::TypeRole) == "map_name" && !data.isNull()) { setMap(data.toString()); } } @@ -690,6 +690,7 @@ void MainWindow::scaleMapView(int s) { ui->graphicsView_Map->scale(sfactor,sfactor); ui->graphicsView_Objects_Map->scale(sfactor,sfactor); + ui->graphicsView_Connections->scale(sfactor,sfactor); int width = static_cast(ceil((editor->scene->width()) * pow(base,exp))) + 2; int height = static_cast(ceil((editor->scene->height()) * pow(base,exp))) + 2;