From 352912d12f987de38ebf69ad9dd8ca44486bb061 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 9 Jan 2018 21:02:08 +0200 Subject: [PATCH] Try to fix backward compatibility with Qt 5.2. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index ada812367..8b3a2b6fe 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1931,8 +1931,8 @@ void MainWindow::ToolBarOption() doubleSpinBoxScale->setDecimals(1); doubleSpinBoxScale->setSuffix("%"); ScaleChanged(ui->view->transform().m11()); - connect(doubleSpinBoxScale, static_cast(&QDoubleSpinBox::valueChanged), this, - [this](double d){ui->view->Zoom(d/100.0);}); + connect(doubleSpinBoxScale.data(), static_cast(&QDoubleSpinBox::valueChanged), + this, [this](double d){ui->view->Zoom(d/100.0);}); ui->toolBarOption->addWidget(doubleSpinBoxScale); ui->toolBarOption->addSeparator();