From 6a0faa5a680ce0549661d95aab65466a43e79fea Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Wed, 20 Dec 2017 12:43:17 +0300 Subject: [PATCH] Segmentation fault fixed --- limereport/lrbasedesignintf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index c9af1ab..6ef5a34 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -1148,8 +1148,8 @@ QWidget* findRootWidget(QWidget* widget){ void BaseDesignIntf::showEditorDialog(){ QWidget *editor = defaultEditor(); - editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet()); if (editor) { + editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet()); #ifdef Q_OS_WIN editor->setAttribute(Qt::WA_DeleteOnClose);