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);